eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
665 stars 61 forks source link

Diagnostics are stuck on deleted files #1440

Closed msujew closed 3 months ago

msujew commented 3 months ago

Langium version: 3.0 Package name: langium

Steps To Reproduce

  1. Open a file with diagnostic markers
  2. Delete or rename the file
  3. The diagnostic markers stay on the non-existent file

See also https://github.com/eclipse-langium/langium/discussions/1439

The current behavior

Diagnostic markers are still visible in the "Problem" widget of vscode

The expected behavior

Diagnostic markers are removed as expected. Generally, language servers are in charge of handling diagnostics on deleted files, see https://github.com/microsoft/language-server-protocol/issues/463.