Skip to content

Commit d84df86

Browse files
authored
Merge pull request #1045 from ethereum/fixRemixd
Fixed allowed methods
2 parents 746dd7d + e1d5773 commit d84df86

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

libs/remixd/src/services/gitClient.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ import { PluginClient } from '@remixproject/plugin'
33
const { spawn } = require('child_process')
44

55
export class GitClient extends PluginClient {
6-
methods: ['execute']
6+
methods: Array<string>
77
websocket: WS
88
currentSharedFolder: string
99
readOnly: boolean
1010

11+
constructor () {
12+
super()
13+
this.methods = ['execute']
14+
}
15+
1116
setWebSocket (websocket: WS): void {
1217
this.websocket = websocket
1318
}

libs/remixd/src/services/remixdClient.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ import * as fs from 'fs-extra'
77
import * as isbinaryfile from 'isbinaryfile'
88

99
export class RemixdClient extends PluginClient {
10-
methods: ['folderIsReadOnly', 'resolveDirectory', 'get', 'exists', 'isFile', 'set', 'list', 'isDirectory', 'createDir']
10+
methods: Array<string>
1111
trackDownStreamUpdate: TrackDownStreamUpdate = {}
1212
websocket: WS
1313
currentSharedFolder: string
1414
readOnly: boolean
1515

16+
constructor () {
17+
super()
18+
this.methods = ['folderIsReadOnly', 'resolveDirectory', 'get', 'exists', 'isFile', 'set', 'rename', 'remove', 'isDirectory', 'list', 'createDir']
19+
}
20+
1621
setWebSocket (websocket: WS): void {
1722
this.websocket = websocket
1823
}

0 commit comments

Comments
 (0)