fixed allowed methods

pull/1045/head
yann300 4 years ago
parent 425f6101bb
commit ad43b36c0d
  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', 'list', 'isDirectory', 'createDir']
}
setWebSocket (websocket: WS): void {
this.websocket = websocket
}

Loading…
Cancel
Save