mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Implement textDocument/didClose
This commit is contained in:
parent
572db893d9
commit
78a9481631
1 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,10 @@ class LanguageServer:
|
||||||
self._open_files[params.textDocument.uri] = text
|
self._open_files[params.textDocument.uri] = text
|
||||||
self._send_diagnostics(uri)
|
self._send_diagnostics(uri)
|
||||||
|
|
||||||
|
@command("textDocument/didClose")
|
||||||
|
def didClose(self, id, params):
|
||||||
|
del self._open_files[params.textDocument.uri]
|
||||||
|
|
||||||
def _send_diagnostics(self, uri):
|
def _send_diagnostics(self, uri):
|
||||||
text = self._open_files[uri]
|
text = self._open_files[uri]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue