In order to properly react to changes happening on the file system level, there are two separate channels:
- There are events sent by the language client if the user deletes files in the editor UI. See
workspace/didDeleteFiles and similar notifications.
- Language servers can register watchers on the client, which then propagate any non-editor fs changes to the server. See
workspace/didChangeWatchedFiles.
In order to properly react to changes happening on the file system level, there are two separate channels:
workspace/didDeleteFilesand similar notifications.workspace/didChangeWatchedFiles.