| 1 | package PLS::Server::Method::CompletionItem; | ||||||||||
| 2 | |||||||||||
| 3 | 13 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 13 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 13 | ▶ | use PLS::Server::Request::CompletionItem::Resolve; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | PLS::Server::Method::CompletionItem | ||||||||||
| 11 | |||||||||||
| 12 | =head1 DESCRIPTION | ||||||||||
| 13 | |||||||||||
| 14 | This module redirects requests beginning with C<completionItem/> to the | ||||||||||
| 15 | appropriate subclass of L<PLS::Server::Request>. | ||||||||||
| 16 | |||||||||||
| 17 | Requests currently implemented: | ||||||||||
| 18 | |||||||||||
| 19 | =over | ||||||||||
| 20 | |||||||||||
| 21 | =item completionItem/resolve - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#completionItem_resolve> | ||||||||||
| 22 | |||||||||||
| 23 | L<PLS::Server::Request::CompletionItem::Resolve> | ||||||||||
| 24 | |||||||||||
| 25 | =back | ||||||||||
| 26 | |||||||||||
| 27 | =cut | ||||||||||
| 28 | |||||||||||
| 29 | sub get_request | ||||||||||
| 30 | 0 | ▶ | { | ||||||||
|
Subroutine
get_request: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 31 | 0 | my ($request) = @_; | |||||||||
| 32 | |||||||||||
| 33 | 0 | my (undef, $method) = split m{/}, $request->{method}; | |||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | if ($method eq 'resolve') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | { | ||||||||||
| 37 | 0 | return PLS::Server::Request::CompletionItem::Resolve->new($request); | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 0 | return; | |||||||||
| 41 | } ## end sub get_request | ||||||||||
| 42 | |||||||||||
| 43 | 13 | 1; | |||||||||