π Search Terms
- Vue
- volar
- plugin
- extension
- file watcher
π Version & Regression Information
TS 5.4.5+ using a VS Code version with vscode file watcher enabled (1.89+)
β― Playground Link
No response
π» Code
microsoft/vscode#214226 (comment)
- Install the official vue plugin for VS Code
- Create a new vue project (tested with https://github.com/johnsoncodehk/volar-starter)
- Open an existing vue file to activate the language server
- Now create a new
.vue file and add a <script> block in it
π Actual behavior
Intellisense doesn't work in the new block. You also see a number of request errors for this file:
ERR <semantic> TypeScript Server Error (5.5.3)
Could not find source file: '/Users/matb/projects/sandbox/volar-starter/src/xxx.vue'.
Error: Could not find source file: '/Users/matb/projects/sandbox/volar-starter/src/xxx.vue'.
at getValidSourceFile (/Users/matb/projects/sandbox/volar-starter/node_modules/typescript/lib/typescript.js:148819:22)
at getEncodedSemanticClassifications3 (/Users/matb/projects/sandbox/volar-starter/node_modules/typescript/lib/typescript.js:149357:77)
at /Users/matb/.vscode/extensions/vue.volar-2.0.26/node_modules/typescript-vue-plugin-bundle/index.js:5:3611
at Proxy.<anonymous> (/Users/matb/.vscode/extensions/vue.volar-2.0.26/node_modules/typescript-vue-plugin-bundle/index.js:279:853)
at IpcIOSession.getEncodedSemanticClassifications (/Users/matb/projects/sandbox/volar-starter/node_modules/typescript/lib/typescript.js:189730:41)
at encodedSemanticClassifications-full (/Users/matb/projects/sandbox/volar-starter/node_modules/typescript/lib/typescript.js:189027:43)
...
π Expected behavior
Script block should be treated as code
Additional information about the issue
Also doesn't happen if you set "typescript.tsserver.experimental.useVsCodeWatcher": false. However this has been on by default since the April stable release of VS Code (1.89) so it is not a new regression
π Search Terms
π Version & Regression Information
TS 5.4.5+ using a VS Code version with vscode file watcher enabled (1.89+)
β― Playground Link
No response
π» Code
microsoft/vscode#214226 (comment)
.vuefile and add a<script>block in itπ Actual behavior
Intellisense doesn't work in the new block. You also see a number of request errors for this file:
π Expected behavior
Script block should be treated as code
Additional information about the issue
Also doesn't happen if you set
"typescript.tsserver.experimental.useVsCodeWatcher": false. However this has been on by default since the April stable release of VS Code (1.89) so it is not a new regression