Skip to content

Commit

Permalink
Merge pull request #1045 from ethereum/fixRemixd
Browse files Browse the repository at this point in the history
Fixed allowed methods
  • Loading branch information
yann300 authored Mar 30, 2021
2 parents 746dd7d + e1d5773 commit d84df86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion libs/remixd/src/services/gitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ import { PluginClient } from '@remixproject/plugin'
const { spawn } = require('child_process')

export class GitClient extends PluginClient {
methods: ['execute']
methods: Array<string>
websocket: WS
currentSharedFolder: string
readOnly: boolean

constructor () {
super()
this.methods = ['execute']
}

setWebSocket (websocket: WS): void {
this.websocket = websocket
}
Expand Down
7 changes: 6 additions & 1 deletion libs/remixd/src/services/remixdClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ import * as fs from 'fs-extra'
import * as isbinaryfile from 'isbinaryfile'

export class RemixdClient extends PluginClient {
methods: ['folderIsReadOnly', 'resolveDirectory', 'get', 'exists', 'isFile', 'set', 'list', 'isDirectory', 'createDir']
methods: Array<string>
trackDownStreamUpdate: TrackDownStreamUpdate = {}
websocket: WS
currentSharedFolder: string
readOnly: boolean

constructor () {
super()
this.methods = ['folderIsReadOnly', 'resolveDirectory', 'get', 'exists', 'isFile', 'set', 'rename', 'remove', 'isDirectory', 'list', 'createDir']
}

setWebSocket (websocket: WS): void {
this.websocket = websocket
}
Expand Down

0 comments on commit d84df86

Please sign in to comment.