Skip to content

Fix premature closing of AutoImportProviderProject for unbuilt monorepos - #40620

Merged
Andrew Branch (andrewbranch) merged 6 commits into
microsoft:masterfrom
andrewbranch:bug/auto-import-provider-lifecycle
Sep 24, 2020
Merged

Fix premature closing of AutoImportProviderProject for unbuilt monorepos#40620
Andrew Branch (andrewbranch) merged 6 commits into
microsoft:masterfrom
andrewbranch:bug/auto-import-provider-lifecycle

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

Discovered while working on something else: if an AutoImportProviderProject only knows about declaration files that will exist according to TS source files and compiler options, but do not actually exist on disk yet, it gets closed unnecessarily because hasRoots() only considers files that actually exist.

Comment threadsrc/server/project.ts Outdated
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
@DanielRosenwasser

Copy link
Copy Markdown
Member

How'd you catch this out of curiosity?

@andrewbranch

Copy link
Copy Markdown
MemberAuthor

I found it while testing #40637

Comment threadsrc/server/project.ts Outdated
Comment threadsrc/server/project.ts
@andrewbranch
Andrew Branch (andrewbranch) merged commit 3b9eb1e into microsoft:masterSep 24, 2020
@andrewbranch
Andrew Branch (andrewbranch) deleted the bug/auto-import-provider-lifecycle branch September 24, 2020 17:05
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@andrewbranch@DanielRosenwasser@sheetalkamat@typescript-bot