Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix premature closing of AutoImportProviderProject for unbuilt monorepos #40620

Merged

Conversation

andrewbranch
Copy link
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.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 17, 2020
Co-authored-by: Daniel Rosenwasser <[email protected]>
@DanielRosenwasser
Copy link
Member

How'd you catch this out of curiosity?

@andrewbranch
Copy link
Member Author

I found it while testing #40637

src/server/project.ts Outdated Show resolved Hide resolved
@andrewbranch andrewbranch merged commit 3b9eb1e into microsoft:master Sep 24, 2020
@andrewbranch andrewbranch deleted the bug/auto-import-provider-lifecycle branch September 24, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants