Open Swassie opened 2 years ago
I'm running into this issue as well, and it's very annoying to have to restart the language server any time I want to do code actions (renames don't require a restart, though, which is nice 😅 ). I've dug into this a bit and would like to see if I can help bring traction to this issue.
textDocument/didSave
, there is no mention that the server should reset the version to 0.textDocument/didSave
, there doesn't appear to be any document version resetting.Based on this analysis, @razzmatazz, would you be able to help with any of the following:
textDocument/didSave
.
I'm using the LSP client Eglot in emacs together with OmniSharp, and it mostly works well. One problem I have encountered is triggered by the following sequence:
I think that OmniSharp shouldn't reset the version in this case. I have looked at a few of the other major LSP servers and I couldn't find anyone that did this. Also I did try removing the line src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpTextDocumentSyncHandler.cs:158 and it solves the problem.
Thanks for your work!