LSP client sends wrong 'workspace/didChangeWatchedFiles' events when Moving / Renaming files #6309
Labels
bug
bugs found in the application
filesystem
issues related to the filesystem
help wanted
issues meant to be picked up, require help
vscode
issues related to VSCode compatibility
Description
The Theia LSP client sends erroneous 'workspace/didChangeWatchedFiles' events when moving or renaming a file.
Moreover, the observed behavior differs depending on the OS hosting the Theia backend.
This is an issue, because a LSP server might rely on this watching behavior to keep track of files inside the workspace.
In fact, some language servers (e.g. the Java LSP) throw exceptions because of URIs becoming invalid.
Reproduction Steps
OS and Theia version:
Windows host: Windows 10 - 1809 (OS Build 17763.740)
Linus host: Linux alpine:3.10.2
Theia Version: 0.10.0
Diagnostics
Scenario 1: Move "Json.json" into the directory "folder"
Running on a Windows machine:
=> Correct
Running on a Linux machine / gitpod.io:
=> Wrong
Scenario 2: Rename "Json.json" to "JsonRenamed.json"
Running locally on a Windows machine:
=> Wrong
Running on a Linux machine / gitpod.io:
=> Correct
The text was updated successfully, but these errors were encountered: