We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04d6ccc + 3848f10 commit 6bd858cCopy full SHA for 6bd858c
server/lib/puppet-languageserver/message_router.rb
@@ -131,6 +131,11 @@ def receive_notification(method, params)
131
documents.set_document(file_uri, content)
132
reply_diagnostics(file_uri, PuppetLanguageServer::DocumentValidator.validate(content))
133
134
+ when 'textDocument/didClose'
135
+ PuppetLanguageServer.log_message(:info, 'Received textDocument/didClose notification.')
136
+ file_uri = params['textDocument']['uri']
137
+ documents.remove_document(file_uri)
138
+
139
when 'textDocument/didChange'
140
PuppetLanguageServer.log_message(:info, 'Received textDocument/didChange notification.')
141
file_uri = params['textDocument']['uri']
0 commit comments