refactor: add siHome into context.subscriptions
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
|
|
||||||
export default class SIHome {
|
export default class SIHome {
|
||||||
|
context: vscode.ExtensionContext;
|
||||||
|
|
||||||
constructor() {
|
constructor(context: vscode.ExtensionContext) {
|
||||||
|
this.context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle(url: string) {
|
toggle(url: string) {
|
||||||
@@ -32,7 +34,10 @@ export default class SIHome {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
|
this.context.subscriptions
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.context.subscriptions.push(panel)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ export class SuperIDEExtension {
|
|||||||
siHome: SIHome;
|
siHome: SIHome;
|
||||||
|
|
||||||
constructor(private context: vscode.ExtensionContext) {
|
constructor(private context: vscode.ExtensionContext) {
|
||||||
this.siHome = new SIHome();
|
this.siHome = new SIHome(context);
|
||||||
|
|
||||||
context.subscriptions.push(
|
context.subscriptions.push(
|
||||||
vscode.window.registerTreeDataProvider(
|
vscode.window.registerTreeDataProvider(
|
||||||
|
Reference in New Issue
Block a user