Open dschafhauser opened 5 years ago
@dschafhauser thank you for the issue, could you try please whether it is still reproducible with the master. Yesterday a fix was merged related to handling fo fs rename events.
We no longer use LSP, but if we generate the wrong events, we might have the same issue with the vscode API.
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