Skip to content

Commit 4f5fe95

Browse files
authored
Merge pull request #946 from ethereum/fixRemixdWorkspace
Fix remixd workspace
2 parents 8d72352 + 0da2716 commit 4f5fe95

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/remix-ide/src/app/files/remixd-handle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin {
3838

3939
deactivate () {
4040
if (super.socket) super.deactivate()
41-
this.call('manager', 'deactivatePlugin', 'git')
41+
this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
4242
this.locahostProvider.close((error) => {
4343
if (error) console.log(error)
4444
})
@@ -49,8 +49,8 @@ export class RemixdHandle extends WebsocketPlugin {
4949
}
5050

5151
async canceled () {
52-
this.call('manager', 'deactivatePlugin', 'git')
53-
this.call('manager', 'deactivatePlugin', 'remixd')
52+
await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
53+
await this.appManager.deactivatePlugin('remixd')
5454
}
5555

5656
/**

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const Workspace = (props: WorkspaceProps) => {
8888

8989
props.localhost.event.register('disconnected', () => {
9090
remixdExplorer.hide()
91+
setWorkspace(props.workspaces.length > 0 ? props.workspaces[0] : NO_WORKSPACE)
9192
})
9293

9394
if (props.initialWorkspace) {

0 commit comments

Comments
 (0)