Closed
Description
Bug Report
🔎 Search Terms
js inferred project restart server
🕗 Version & Regression Information
Tested on 4.3.0-dev.20210316
- I was unable to test this on prior versions because that seemed like it would take a lot of time
💻 Code
tsconfig.json:
{
"compilerOptions": {
"lib": ["es2020"],
"allowJs": true,
"checkJs": true,
"strict": true,
"noEmit": true,
"types": ["node"]
}
}
Open project, then add a new JS file.
🙁 Actual behavior
It doesn’t get checked for errors, and can’t see globals declared in other JS files in the project. TS Server log shows the file added to a new inferred project instead of the configured project. After restarting TS Server, the file is in the configured project as expected.
🙂 Expected behavior
The file gets added to the configured project.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
MartinJohns commentedon Mar 17, 2021
That sounds like #43280.
andrewbranch commentedon Mar 17, 2021
Touché @DanielRosenwasser, you got me good, now I’ve gone and duplicated myself