File Coverage

blib/lib/PLS/Server/Method/CompletionItem.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 21 57.1


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   46 use warnings;
  9         18  
  9         255  
4 9     9   37  
  9         17  
  9         196  
5             use PLS::Server::Request::CompletionItem::Resolve;
6 9     9   3470  
  9         26  
  9         1045  
7             =head1 NAME
8              
9             This module redirects requests beginning with C<completionItem/> to the
10             appropriate subclass of L<PLS::Server::Request>.
11              
12             Requests currently implemented:
13              
14             =over
15              
16             =item completionItem/resolve - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#completionItem_resolve>
17              
18             L<PLS::Server::Request::CompletionItem::Resolve>
19              
20             =back
21              
22             =cut
23              
24             {
25             my ($request) = @_;
26              
27 0     0 0   my (undef, $method) = split '/', $request->{method};
28              
29 0           if ($method eq 'resolve')
30             {
31 0 0         return PLS::Server::Request::CompletionItem::Resolve->new($request);
32             }
33 0            
34             return;
35             } ## end sub get_request
36 0            
37             1;