fix deactivating plugins

pull/2974/head
filip mertens 2 years ago
parent b679f7f938
commit 2917589fc2
  1. 6
      apps/remix-ide/src/app/plugins/remixd-handle.tsx

@ -44,8 +44,10 @@ export class RemixdHandle extends WebsocketPlugin {
async deactivate() {
for (const plugin of this.dependentPlugins) {
if (await this.appManager.isActive(plugin)) {
await this.appManager.deactivatePlugin(plugin)
}
}
if (super.socket) super.deactivate()
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
this.localhostProvider.close((error) => {
@ -60,9 +62,13 @@ export class RemixdHandle extends WebsocketPlugin {
async canceled() {
for (const plugin of this.dependentPlugins) {
if (await this.appManager.isActive(plugin)) {
await this.appManager.deactivatePlugin(plugin)
}
}
await this.appManager.deactivatePlugin('remixd')
}
/**

Loading…
Cancel
Save