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