Repository navigation
Add tests for tsserver project system - #9002
Conversation
| const callbacks = lookUp(this.watchedFiles, path); | ||
| if (callbacks) { | ||
| for (const callback of callbacks) { | ||
| callback(path, /*removed*/ true); |
There was a problem hiding this comment.
do we ever use removed parameter? As I can see we already double check the presence of file in event handler so we should either remove it if we think it should not be trusted or switch to using it (and in this case it should become parameter in triggerFileWatcherCallback)?
There was a problem hiding this comment.
I didn't see it was used anywhere in the server code. However, it may be used in other hosts like chakra, as the implementation of event handler is host specific. Might be safer to move it as a parameter in triggerFileWatcherCallback.
|
can we add tests for cases when files were initially in configured project but then were moved to inferred project after config file is changed.
|
|
Vladimir Matveev (@vladima) further comments? |
|
👍 |
|
thanks! |
No description provided.