File tree Expand file tree Collapse file tree
apps/remix-ide/src/app/files
libs/remix-ui/workspace/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments