Skip to content

Check for watched directories before clearing map#44947

Merged
andrewbranch merged 1 commit intomicrosoft:mainfrom
andrewbranch:bug/44372
Jul 16, 2021
Merged

Check for watched directories before clearing map#44947
andrewbranch merged 1 commit intomicrosoft:mainfrom
andrewbranch:bug/44372

Conversation

@andrewbranch
Copy link
Copy Markdown
Member

Without any info about a repro of this crash, I’m not sure how to come up with a test for this. However, as @DanielRosenwasser pointed out, the PR where this code was added (#42929) uses defensive checks against config.watchedDirectories being undefined elsewhere, so perhaps this was just an oversight.

Fixes #44372

@andrewbranch andrewbranch merged commit b300ef4 into microsoft:main Jul 16, 2021
@andrewbranch andrewbranch deleted the bug/44372 branch July 16, 2021 22:35
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

TS Server fatal error: Cannot read property 'forEach' of undefined

4 participants