vscode-languageserver-node: Send didOpen requests after LS crashed

This is the scenario: I have VS Code open, with a file open with unsaved changes. Now my language server crashes for some reason. VS Code restarts my language server. New LS instance starts up, but as far as I can tell this new instance never receives a didOpen request with the content of the unsaved file that is open in the editor. So now the state in the editor and the LS have diverged: my LS doesn’t know about the unsaved edits in the file.

So I guess one option would be that VS Code sends a didOpen request when it restarts a LS after a crash for all open files.

Or is there some other way we should handle that?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@davidanthoff Great! Happy to help!