Class: Rucoa::Handlers::InitializeHandler

Inherits:
Base
  • Object
show all
Defined in:
lib/rucoa/handlers/initialize_handler.rb

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Rucoa::Handlers::Base

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/rucoa/handlers/initialize_handler.rb', line 6

def call
  respond(
    capabilities: {
      codeActionProvider: true,
      completionProvider: {
        resolveProvider: true,
        triggerCharacters: %w[
          .
        ]
      },
      definitionProvider: true,
      documentFormattingProvider: true,
      documentHighlightProvider: true,
      documentRangeFormattingProvider: true,
      documentSymbolProvider: true,
      hoverProvider: true,
      selectionRangeProvider: true,
      signatureHelpProvider: {
        triggerCharacters: %w[
          (
          ,
        ]
      },
      textDocumentSync: {
        change: 1, # Full
        openClose: true
      }
    }
  )
end