-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
KotlinIsland and DetachHead
Metadata
Metadata
Assignees
Labels
No labels
