Unverified Commit 4f5fe95b authored by David Disu's avatar David Disu Committed by GitHub

Merge pull request #946 from ethereum/fixRemixdWorkspace

Fix remixd workspace
parents 8d723522 0da27167
...@@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin { ...@@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin {
deactivate () { deactivate () {
if (super.socket) super.deactivate() if (super.socket) super.deactivate()
this.call('manager', 'deactivatePlugin', 'git') this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
this.locahostProvider.close((error) => { this.locahostProvider.close((error) => {
if (error) console.log(error) if (error) console.log(error)
}) })
...@@ -49,8 +49,8 @@ export class RemixdHandle extends WebsocketPlugin { ...@@ -49,8 +49,8 @@ export class RemixdHandle extends WebsocketPlugin {
} }
async canceled () { async canceled () {
this.call('manager', 'deactivatePlugin', 'git') await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
this.call('manager', 'deactivatePlugin', 'remixd') await this.appManager.deactivatePlugin('remixd')
} }
/** /**
......
...@@ -88,6 +88,7 @@ export const Workspace = (props: WorkspaceProps) => { ...@@ -88,6 +88,7 @@ export const Workspace = (props: WorkspaceProps) => {
props.localhost.event.register('disconnected', () => { props.localhost.event.register('disconnected', () => {
remixdExplorer.hide() remixdExplorer.hide()
setWorkspace(props.workspaces.length > 0 ? props.workspaces[0] : NO_WORKSPACE)
}) })
if (props.initialWorkspace) { if (props.initialWorkspace) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment