Skip to content

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Aug 20, 2025

When rootDir is passed as /, the default value of configFileName is simply concatenated into an invalid //jsconfig.json, which causes the TS parseJsonConfigFileContent method to perform file searches with incorrect parameters, coincidentally making it impossible to reproduce issue #5598 in posix path systems.

After this PR, I was able to reproduce #5598 on OSX.

It should be noted that for files not included in the tsconfig, rootDir should fall back to the workspace root directory rather than /, which requires investigation in VSCode.

Copy link

pkg-pr-new bot commented Aug 20, 2025

Open in StackBlitz

vue-component-meta

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5606

vue-component-type-helpers

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5606

@vue/language-core

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5606

@vue/language-plugin-pug

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5606

@vue/language-server

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5606

@vue/language-service

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5606

vue-tsc

npm i https://pkg.pr.new/vuejs/language-tools/vue-tsc@5606

@vue/typescript-plugin

npm i https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5606

commit: d726130

@johnsoncodehk johnsoncodehk merged commit 56f1267 into master Aug 20, 2025
10 checks passed
@johnsoncodehk johnsoncodehk deleted the configFileName branch August 20, 2025 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant