Skip to content

Commit

Permalink
feat: compatible with latest labs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 11, 2023
1 parent 2f6c7f6 commit 0675514
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/vscode-vue/src/nodeClientMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { activate as commonActivate, deactivate as commonDeactivate, getDocument
import { middleware } from './middleware';
import * as serverLib from '@vue/language-server';
import { config } from './config';
import { createExports } from '@volar/vscode';
import type { ExportsInfoForLabs } from '@volar/vscode';

export async function activate(context: vscode.ExtensionContext) {

Expand Down Expand Up @@ -108,11 +108,14 @@ export async function activate(context: vscode.ExtensionContext) {
return client;
});

return createExports({
codegenStackSupport: true,
languageClients,
serverLib: serverLib as any,
});
return {
volarLabs: {
version: '1.6.2',
codegenStackSupport: true,
languageClients,
languageServerProtocol: serverLib,
},
} satisfies ExportsInfoForLabs;
}

export function deactivate(): Thenable<any> | undefined {
Expand Down

0 comments on commit 0675514

Please sign in to comment.