Closed as not planned
Description
Bug Report
if a project has multiple tsconfig files (eg tsconfig.json and tsconfig.other.json) then the language server seems to ignore the one that isn't named tsconfig.json
🔎 Search Terms
language server multiple tsconfig
🕗 Version & Regression Information
4.8.0-dev.20220522
⏯ Playground github Link
https://github.com/DetachHead/typescript-nodejs-project/tree/global-types-issue
💻 Code
main config
// tsconfig.json
{
"compilerOptions": {
"target": "es3"
},
"include": ["src/main.ts"]
}// src/main.ts
export {}
"".replaceAll // errorother config
// tsconfig.json
{
"compilerOptions": {
"target": "es2021"
},
"include": ["src/other.ts"]
}export {}
"".replaceAll // error ???🙁 Actual behavior
the following error in other.ts:
Property 'replaceAll' does not exist on type '""'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
🙂 Expected behavior
no error when accessing the globally defined pm object in either file
Reacted by KotlinIsland and DetachHead
Metadata
Metadata
Assignees
Labels
No labels

Activity
[-]language server doesn't resolve globally declared types when using `types` property in tsconfig when it has a name other than `tsconfig.json`[/-][+]language server ignores some compiler options in tsconfig when it it has a name other than `tsconfig.json`[/+][-]language server ignores some compiler options in tsconfig when it it has a name other than `tsconfig.json`[/-][+]language server ignores some compiler options in tsconfig when it has a name other than `tsconfig.json`[/+][-]language server ignores some compiler options in tsconfig when it has a name other than `tsconfig.json`[/-][+]language server ignores multiple tsconfig files[/+]MartinJohns commentedon May 23, 2022
See #33094.
fix(dev): Add placeholder tsconfigs for tests (#5169)
fix(dev): Add placeholder tsconfigs for tests (#5200)