Skip to content

Commit

Permalink
chore(vscode): rename typescript-vue-plugin-pack to vue-typescript-pl…
Browse files Browse the repository at this point in the history
…ugin-pack in configuration
  • Loading branch information
johnsoncodehk committed Nov 6, 2024
1 parent 80f0770 commit 7f27f9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
],
"typescriptServerPlugins": [
{
"name": "typescript-vue-plugin-pack",
"name": "vue-typescript-plugin-pack",
"enableForWorkspaceTypeScriptVersions": true,
"configNamespace": "typescript"
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/src/nodeClientMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ 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
text = text.replace(
'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)'
Expand Down

0 comments on commit 7f27f9a

Please sign in to comment.