lsp: Implement textDocument/didClose

This commit is contained in:
James Westman 2021-10-22 22:01:40 -05:00
parent 572db893d9
commit 78a9481631
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -121,6 +121,10 @@ class LanguageServer:
self._open_files[params.textDocument.uri] = text
self._send_diagnostics(uri)
@command("textDocument/didClose")
def didClose(self, id, params):
del self._open_files[params.textDocument.uri]
def _send_diagnostics(self, uri):
text = self._open_files[uri]