| 1 | package PLS::Server::Response::InitializeResult; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use parent q(PLS::Server::Response); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | PLS::Server::Response::InitializeResult | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | This is a message from the server to the client with the result | ||
| 15 | of initialization. | ||
| 16 | |||
| 17 | This message contains information about the server's capabilities. | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | sub new | ||
| 22 | { | ||
| 23 | 0 | ▶ | my ($class, $request) = @_; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | |||
| 25 | my %self = ( | ||
| 26 | id => $request->{id}, | ||
| 27 | 0 | result => { | |
| 28 | capabilities => { | ||
| 29 | definitionProvider => \1, | ||
| 30 | documentSymbolProvider => \1, | ||
| 31 | hoverProvider => \1, | ||
| 32 | signatureHelpProvider => { | ||
| 33 | triggerCharacters => ['(', ','] | ||
| 34 | }, | ||
| 35 | textDocumentSync => { | ||
| 36 | openClose => \1, | ||
| 37 | change => 2, | ||
| 38 | save => \1 | ||
| 39 | }, | ||
| 40 | documentFormattingProvider => \1, | ||
| 41 | documentRangeFormattingProvider => \1, | ||
| 42 | completionProvider => { | ||
| 43 | triggerCharacters => ['>', ':', '$', '@', '%'], | ||
| 44 | resolveProvider => \1 | ||
| 45 | }, | ||
| 46 | executeCommandProvider => { | ||
| 47 | commands => [ | ||
| 48 | 'perl.sortImports' | ||
| 49 | ] | ||
| 50 | } | ||
| 51 | } | ||
| 52 | } | ||
| 53 | ); | ||
| 54 | |||
| 55 | 0 | return bless \%self, $class; | |
| 56 | } ## end sub new | ||
| 57 | |||
| 58 | 1 | 1; | |