Class: TypeProf::LSP::Message::TextDocument::DidClose

Inherits:
TypeProf::LSP::Message show all
Defined in:
lib/typeprof/lsp/messages.rb

Overview

textDocument/willSave notification textDocument/willSaveWaitUntil request textDocument/didSave notification

Constant Summary collapse

METHOD =

notification

"textDocument/didClose"

Constants inherited from TypeProf::LSP::Message

Classes, TypeProf::LSP::Message::Table

Instance Method Summary collapse

Methods inherited from TypeProf::LSP::Message

build_table, find, inherited, #initialize, #log, #notify, #respond, #respond_error

Constructor Details

This class inherits a constructor from TypeProf::LSP::Message

Instance Method Details

#runObject



164
165
166
167
168
169
# File 'lib/typeprof/lsp/messages.rb', line 164

def run
  @params => { textDocument: { uri: } }
  text = @server.open_texts.delete(uri)
  return unless text
  @server.core.update_file(text.path, nil)
end