diff --git a/src/home.ts b/src/home.ts index 04ba2db..a509361 100644 --- a/src/home.ts +++ b/src/home.ts @@ -45,6 +45,11 @@ export default class DSHome { // ================= need return ==================== switch (message.command) { // ----------------- frequent ----------------------- + case 'getHomeConfig': + const config = { + language: vscode.env.language + } + panel.webview.postMessage({command: 'getHomeConfig', data: {homeConfig: config}}) case 'getUserToken': const userToken = this.user.getUserTokenFromLocal() if (userToken === undefined) { diff --git a/src/main.ts b/src/main.ts index ec16b18..346a6d2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,6 +16,7 @@ export class DevStarExtension { this.remoteContainer = new RemoteContainer(this.user); this.dsHome = new DSHome(context, this.user); + // support for open with vscode in web const handler = vscode.window.registerUriHandler({ handleUri: async (uri: vscode.Uri) => { const devstarAPIHandler = new DevstarAPIHandler()