refactor: rename the project as devstar

This commit is contained in:
Levi Yan
2024-07-16 23:28:56 +08:00
parent e4a9d125cd
commit a0ecb6c559
4 changed files with 25 additions and 25 deletions

View File

@@ -1,16 +1,16 @@
import * as vscode from 'vscode';
import QuickAccessTreeProvider from './views/quick-access-tree';
import SIHome from './home';
import DSHome from './home';
export class SuperIDEExtension {
siHome: SIHome;
dsHome: DSHome;
constructor(private context: vscode.ExtensionContext) {
this.siHome = new SIHome(context);
this.dsHome = new DSHome(context);
context.subscriptions.push(
vscode.window.registerTreeDataProvider(
'superide.quickAccess',
'devstar.quickAccess',
new QuickAccessTreeProvider()
)
);
@@ -21,14 +21,14 @@ export class SuperIDEExtension {
}
async startSuperIDEHome() {
vscode.commands.executeCommand('superide.showHome');
vscode.commands.executeCommand('devstar.showHome');
}
registerGlobalCommands(context: vscode.ExtensionContext) {
context.subscriptions.push(
vscode.commands.registerCommand('superide.showHome', (url: string) =>
this.siHome.toggle(url)
vscode.commands.registerCommand('devstar.showHome', (url: string) =>
this.dsHome.toggle(url)
),
);
}