You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear to me from the API of FileWatcher whether or not a double close is intended to be to be legal (I'll add some asserts to various implementations to check), but I think making this one not crash is straightforward.
I can't say I know for sure if the API should allow double closes or not; there are clearly some refcounted file watchers which just start returning early once their references are up. There are also some other cases (different from this issue's trace) which could potentially crash if some invariant were violated, but we a aren't seeing those. So I'm inclined to go the safer route that doesn't do a undefined!.
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
4.8.0-dev.20220711
Seems like a regression as I do not remember seeing this in TS 4.7
Details
When closing editors in VS Code, recently I've been seeing the following crash:
I can't repo this reliably but here's the complete log of a session the crashed (it's quite large)
tsserver.log.zip
The text was updated successfully, but these errors were encountered: