techee / geany-lsp

LSP plugin for the Geany editor
GNU General Public License v2.0
11 stars 1 forks source link

Trigger server to re-parse on reload #32

Closed elextr closed 1 week ago

elextr commented 8 months ago

Pulled b4n's latest encodings changes and mesoned them but had encodings.c open at the time. Got a reload info bar as expected, selected reload and then the positioning of semantic highlighting is wrong. Looks like clangd is still using its cache and not reparsing the modified file or the plugin isn't updating semantics in Scintilla.

elextr commented 8 months ago

After some more experimentation:

  1. after the reload no semantics are shown, or semantics are shown in the wrong position, I couldn't determine what controlled that.
  2. switching tabs away and back has no effect
  3. restarting the server (Tools->LSP Client->Restart all servers) has no effect
  4. restarting the server and switching tabs away and back shows semantics correctly again
techee commented 5 months ago

I believe I fixed this in the latest commit - can you confirm it works correctly now?

elextr commented 5 months ago

Will do, but it will be a while before I am home to that machine.

techee commented 1 week ago

Should be fixed so closing - if the issue is still present, please reopen it.