Skip to content

[Vue TS Plugin] The tsconfig selected for root file and external file is inconsistent #57632

Closed
@johnsoncodehk

Description

@johnsoncodehk

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

  1. Clone segevfiner/vite-issue-1815
  2. Open the repo in VSCode, install marketplace.visualstudio.com/items?itemName=Vue.volar 2.0.4
  3. Open apps/web/src/main.ts, and check the tsconfig at status bar, it's apps/web/tsconfig.app.json
    image
  4. Open apps/web/src/App.vue, and check the tsconfig at status bar, it's apps/web/tsconfig.vitest.json, but expected same as apps/web/src/main.ts
    image

Metadata

Metadata

Assignees

Labels

ExternalRelates to another program, environment, or user action which we cannot control.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions