Skip to content

Commit

Permalink
chore(vscode): update message text
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 20, 2023
1 parent 77c2415 commit 8371314
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions extensions/vscode/src/nodeClientMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,14 @@ export async function activate(context: vscode.ExtensionContext) {

const tsExtension = vscode.extensions.getExtension('vscode.typescript-language-features');
const vueTsPluginExtension = vscode.extensions.getExtension('Vue.vscode-typescript-vue-plugin');
const volarLabs = createLabsInfo(serverLib);

volarLabs.extensionExports.volarLabs.codegenStackSupport = true;

if (tsExtension) {
await tsExtension.activate();
}
else {
vscode.window.showWarningMessage(
`Takeover mode is not longer needed in 2.0, please enable the "TypeScript and JavaScript Language Features" extension.`,
`Show Extension`
'Takeover mode is no longer needed in version 2.0. Please enable the "TypeScript and JavaScript Language Features" extension.',
'Show Extension'
).then((selected) => {
if (selected) {
vscode.commands.executeCommand('workbench.extensions.search', '@builtin TypeScript and JavaScript Language Features');
Expand All @@ -137,15 +134,17 @@ export async function activate(context: vscode.ExtensionContext) {

if (vueTsPluginExtension) {
vscode.window.showWarningMessage(
`The "${vueTsPluginExtension.packageJSON.displayName}" extension is no longer needed in 2.0, please uninstall it.`,
`Show Extension`
`The "${vueTsPluginExtension.packageJSON.displayName}" extension is no longer needed in version 2.0. Please uninstall it.`,
'Show Extension'
).then((selected) => {
if (selected) {
vscode.commands.executeCommand('workbench.extensions.search', vueTsPluginExtension.id);
}
});
}

const volarLabs = createLabsInfo(serverLib);
volarLabs.extensionExports.volarLabs.codegenStackSupport = true;
return volarLabs.extensionExports;
}

Expand Down

0 comments on commit 8371314

Please sign in to comment.