Closed
Description
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
Issues: vuejs/language-tools#3951, vuejs/language-tools#1815
For the root file, tsserver selects the last matching tsconfig in the list of tsconfig references for it.
But for external files, tsserver selects the first matching tsconfig in the list of tsconfig references for it.
Steps to reproduce
- Clone segevfiner/vite-issue-1815
- Open the repo in VSCode, install marketplace.visualstudio.com/items?itemName=Vue.volar 2.0.4
- Open
apps/web/src/main.ts
, and check the tsconfig at status bar, it'sapps/web/tsconfig.app.json
- Open
apps/web/src/App.vue
, and check the tsconfig at status bar, it'sapps/web/tsconfig.vitest.json
, but expected same asapps/web/src/main.ts