Skip to content

Commit 0de80d2

Browse files
Ilanayazardoy
andauthored
feat(vue support): support Volar 1.7.0+ (#140)
Co-authored-by: Vitaly Turovsky <[email protected]>
1 parent bb5c6d8 commit 0de80d2

File tree

11 files changed

+492
-234
lines changed

11 files changed

+492
-234
lines changed

buildTsPlugin.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
import buildTsPlugin from '@zardoy/vscode-utils/build/buildTypescriptPlugin.js'
33
import { build, analyzeMetafile } from 'esbuild'
44

5+
const enableWatch = process.argv.includes('--watch')
56
await build({
67
bundle: true,
78
external: ['typescript-essential-plugins'],
89
// minify: !watch,
10+
watch: enableWatch,
911
entryPoints: ['./typescript/src/volarConfig.ts'],
1012
outfile: './out/volarConfig.js',
1113
format: 'cjs',
@@ -18,7 +20,7 @@ await build({
1820
})
1921

2022
const result = await buildTsPlugin('typescript', undefined, undefined, {
21-
minify: !process.argv.includes('--watch'),
23+
minify: !enableWatch,
2224
metafile: true,
2325
define: {
2426
'import.meta': '{}',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@
149149
"@types/lodash": "^4.14.182",
150150
"@types/mocha": "^9.1.1",
151151
"@types/pluralize": "^0.0.29",
152-
"@volar/language-server": "1.3.0-alpha.3",
153-
"@volar/language-service": "1.6.9",
154-
"@volar/vue-language-core": "^1.2.0-patch.2",
152+
"@vue/language-server": "latest",
153+
"@vue/language-service": "latest",
154+
"@vue/language-core": "latest",
155155
"@vscode/emmet-helper": "^2.8.4",
156156
"@vscode/test-electron": "^2.1.5",
157157
"@zardoy/utils": "^0.0.9",
@@ -201,4 +201,4 @@
201201
"runTest": false
202202
}
203203
}
204-
}
204+
}

0 commit comments

Comments
 (0)