robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
206 stars 93 forks source link

Plugin not rerunning syntax recognition despite changes #808

Open wvanmourik-aa opened 1 year ago

wvanmourik-aa commented 1 year ago

Describe the bug The syntax recognition and syntax highlighting often gets confused. See screenshot. Sometimes it helps to add a space, remove it and force a filesave, for the plugin to fix 'it self'.

However, after a while that is not the case anymore and the only (temporary) fix is to invalidate caches. This is time consuming.

To Reproduce It just always happens after a while (while file changes are being made). I often switch between git branches, which might be a related cause.

Expected behavior Syntax highlighting and syntax recognition reloading/indexing often and fast enough to stay up to date with actual file contents.

Screenshots image

Versions:

Tatters654 commented 1 year ago

This issue still exists and makes the plugin quite unusable from UX perspective. Its completely reproducable on my work machine in a large codebase, but I couldn't reproduce it locally on my home PC on a fresh project. When it happens, opening up the commit window with CTRL + K fixes it instantly, if that helps at all.