diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 1b47dc5253..e500d44f75 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -88,7 +88,7 @@ ], "typescriptServerPlugins": [ { - "name": "typescript-vue-plugin-pack", + "name": "vue-typescript-plugin-pack", "enableForWorkspaceTypeScriptVersions": true, "configNamespace": "typescript" } diff --git a/extensions/vscode/scripts/build.js b/extensions/vscode/scripts/build.js index da29ae66d2..39acc64a1f 100644 --- a/extensions/vscode/scripts/build.js +++ b/extensions/vscode/scripts/build.js @@ -7,7 +7,7 @@ require('esbuild').context({ 'dist/client': './out/nodeClientMain.js', 'dist/server': './node_modules/@vue/language-server/bin/vue-language-server.js', 'node_modules/vue-language-core-pack/index': './node_modules/@vue/language-core/index.js', - 'node_modules/typescript-vue-plugin-pack/index': './node_modules/@vue/typescript-plugin/index.js', + 'node_modules/vue-typescript-plugin-pack/index': './node_modules/@vue/typescript-plugin/index.js', }, bundle: true, metafile: process.argv.includes('--metafile'), diff --git a/extensions/vscode/src/nodeClientMain.ts b/extensions/vscode/src/nodeClientMain.ts index ab29d80594..56960d104d 100644 --- a/extensions/vscode/src/nodeClientMain.ts +++ b/extensions/vscode/src/nodeClientMain.ts @@ -150,7 +150,7 @@ try { if (!enabledTypeScriptPlugin.value) { text = text.replace( 'for(const e of n.contributes.typescriptServerPlugins', - s => s + `.filter(p=>p.name!=='typescript-vue-plugin-pack')` + s => s + `.filter(p=>p.name!=='vue-typescript-plugin-pack')` ); } else if (enabledHybridMode.value) { // patch readPlugins @@ -158,7 +158,7 @@ try { 'languages:Array.isArray(e.languages)', [ 'languages:', - `e.name==='typescript-vue-plugin-pack'?[${config.server.includeLanguages + `e.name==='vue-typescript-plugin-pack'?[${config.server.includeLanguages .map(lang => `'${lang}'`) .join(',')}]`, ':Array.isArray(e.languages)'