|
|
@ -40,7 +40,7 @@ export class RemixdHandle extends WebsocketPlugin { |
|
|
|
deactivate () { |
|
|
|
deactivate () { |
|
|
|
this.fileSystemExplorer.hide() |
|
|
|
this.fileSystemExplorer.hide() |
|
|
|
if (super.socket) super.deactivate() |
|
|
|
if (super.socket) super.deactivate() |
|
|
|
this.appManager.ensureDeactivated('git') |
|
|
|
this.call('manager', 'deactivatePlugin', 'git') |
|
|
|
this.locahostProvider.close((error) => { |
|
|
|
this.locahostProvider.close((error) => { |
|
|
|
if (error) console.log(error) |
|
|
|
if (error) console.log(error) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -52,8 +52,8 @@ export class RemixdHandle extends WebsocketPlugin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async canceled () { |
|
|
|
async canceled () { |
|
|
|
this.appManager.ensureDeactivated('remixd') |
|
|
|
this.call('manager', 'deactivatePlugin', 'remixd') |
|
|
|
this.appManager.ensureDeactivated('git') |
|
|
|
this.call('manager', 'deactivatePlugin', 'git') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -84,7 +84,7 @@ export class RemixdHandle extends WebsocketPlugin { |
|
|
|
} |
|
|
|
} |
|
|
|
}, 3000) |
|
|
|
}, 3000) |
|
|
|
this.locahostProvider.init(_ => this.fileSystemExplorer.ensureRoot()) |
|
|
|
this.locahostProvider.init(_ => this.fileSystemExplorer.ensureRoot()) |
|
|
|
this.appManager.ensureActivated('git') |
|
|
|
this.call('manager', 'activatePlugin', 'git')
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.locahostProvider.isConnected()) { |
|
|
|
if (this.locahostProvider.isConnected()) { |
|
|
|