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