Merge pull request #1045 from ethereum/fixRemixd

Fixed allowed methods
pull/1053/head
yann300 4 years ago committed by GitHub
commit d84df8683f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      libs/remixd/src/services/gitClient.ts
  2. 7
      libs/remixd/src/services/remixdClient.ts

@ -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
}

@ -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
}

Loading…
Cancel
Save