Class: TypeProf::LSP::Message::Initialize
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/messages.rb |
Constant Summary
-
METHOD =
request (required)
"initialize"
::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/messages.rb', line 57
def run folders = @params[:workspaceFolders].map do |folder| folder => { uri:, } @server.uri_to_path(uri) end @server.add_workspaces(folders) respond( capabilities: { textDocumentSync: { openClose: true, change: 2, # Incremental }, hoverProvider: true, definitionProvider: true, typeDefinitionProvider: true, completionProvider: { triggerCharacters: [".", ":"], }, #signatureHelpProvider: { # triggerCharacters: ["(", ","], #}, codeLensProvider: { resolveProvider: false, }, renameProvider: { prepareProvider: false, }, executeCommandProvider: { commands: [ "typeprof.createPrototypeRBS", "typeprof.enableSignature", "typeprof.disableSignature", ], }, #typeDefinitionProvider: true, referencesProvider: true, }, serverInfo: { name: "typeprof", version: TypeProf::VERSION, }, ) log "TypeProf for IDE is started successfully" end