Class: TypeProf::LSP::Message::TextDocument::Completion
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::TypeProf::LSP::Message
|
|
Instance Chain:
self,
::TypeProf::LSP::Message
|
|
Inherits: |
TypeProf::LSP::Message
|
Defined in: | lib/typeprof/lsp.rb |
Constant Summary
-
METHOD =
# File 'lib/typeprof/lsp.rb', line 681"textDocument/completion"
::TypeProf::LSP::Message
- Inherited
Class Method Summary
::TypeProf::LSP::Message
- Inherited
Instance Method Summary
Constructor Details
This class inherits a constructor from TypeProf::LSP::Message
Instance Method Details
#run
[ GitHub ]# File 'lib/typeprof/lsp.rb', line 682
def run case @params in { textDocument: { uri:, }, position: loc, context: { triggerKind: trigger_kind }, } in { textDocument: { uri:, }, position: loc, } trigger_kind = 1 else raise end items = @server.open_texts[uri]&.code_complete(loc, trigger_kind) if items respond( { isIncomplete: true, items: items } ) else respond(nil) end end