| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package PLS::Server::Method::Workspace; |
|
2
|
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
71
|
use strict; |
|
|
9
|
|
|
|
|
117
|
|
|
|
9
|
|
|
|
|
512
|
|
|
4
|
9
|
|
|
9
|
|
122
|
use warnings; |
|
|
9
|
|
|
|
|
25
|
|
|
|
9
|
|
|
|
|
865
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
3849
|
use PLS::Server::Request::Workspace::Configuration; |
|
|
9
|
|
|
|
|
85
|
|
|
|
9
|
|
|
|
|
292
|
|
|
7
|
9
|
|
|
9
|
|
3322
|
use PLS::Server::Request::Workspace::DidChangeConfiguration; |
|
|
9
|
|
|
|
|
18
|
|
|
|
9
|
|
|
|
|
243
|
|
|
8
|
9
|
|
|
9
|
|
3548
|
use PLS::Server::Request::Workspace::DidChangeWatchedFiles; |
|
|
9
|
|
|
|
|
19
|
|
|
|
9
|
|
|
|
|
281
|
|
|
9
|
9
|
|
|
9
|
|
3253
|
use PLS::Server::Request::Workspace::DidChangeWorkspaceFolders; |
|
|
9
|
|
|
|
|
107
|
|
|
|
9
|
|
|
|
|
344
|
|
|
10
|
9
|
|
|
9
|
|
3499
|
use PLS::Server::Request::Workspace::ExecuteCommand; |
|
|
9
|
|
|
|
|
26
|
|
|
|
9
|
|
|
|
|
236
|
|
|
11
|
9
|
|
|
9
|
|
3216
|
use PLS::Server::Request::Workspace::Symbol; |
|
|
9
|
|
|
|
|
26
|
|
|
|
9
|
|
|
|
|
1326
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
PLS::Server::Method::Workspace |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
This module redirects requests starting with C<workspace/> to the appropriate |
|
20
|
|
|
|
|
|
|
subclass of L<PLS::Server::Request> for the type of request. |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Requests currently implemented: |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=over |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item workspace/didChangeConfiguration - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_didChangeConfiguration> |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
L<PLS::Server::Request::Workspace::DidChangeConfiguration> |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item workspace/didChangeWatchedFiles - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_didChangeWatchedFiles> |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L<PLS::Server::Request::Workspace::DidChangeWatchedFiles> |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item workspace/didChangeWorkspaceFolders - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_didChangeWorkspaceFolders> |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
L<PLS::Server::Request::Workspace::DidChangeWorkspaceFolders> |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item workspace/configuration - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_configuration> |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
L<PLS::Server::Request::Workspace::Configuration> |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item workspace/executeCommand - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_executeCommand> |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
L<PLS::Server::Request::Workspace::ExecuteCommand> |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=back |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub get_request |
|
51
|
|
|
|
|
|
|
{ |
|
52
|
0
|
|
|
0
|
0
|
|
my ($request) = @_; |
|
53
|
|
|
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
my (undef, $method) = split '/', $request->{method}; |
|
55
|
|
|
|
|
|
|
|
|
56
|
0
|
0
|
|
|
|
|
if ($method eq 'didChangeConfiguration') |
|
57
|
|
|
|
|
|
|
{ |
|
58
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::DidChangeConfiguration->new($request); |
|
59
|
|
|
|
|
|
|
} |
|
60
|
0
|
0
|
|
|
|
|
if ($method eq 'didChangeWatchedFiles') |
|
61
|
|
|
|
|
|
|
{ |
|
62
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::DidChangeWatchedFiles->new($request); |
|
63
|
|
|
|
|
|
|
} |
|
64
|
0
|
0
|
|
|
|
|
if ($method eq 'didChangeWorkspaceFolders') |
|
65
|
|
|
|
|
|
|
{ |
|
66
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::DidChangeWorkspaceFolders->new($request); |
|
67
|
|
|
|
|
|
|
} |
|
68
|
0
|
0
|
|
|
|
|
if ($method eq 'configuration') |
|
69
|
|
|
|
|
|
|
{ |
|
70
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::Configuration->new($request); |
|
71
|
|
|
|
|
|
|
} |
|
72
|
0
|
0
|
|
|
|
|
if ($method eq 'executeCommand') |
|
73
|
|
|
|
|
|
|
{ |
|
74
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::ExecuteCommand->new($request); |
|
75
|
|
|
|
|
|
|
} |
|
76
|
0
|
0
|
|
|
|
|
if ($method eq 'symbol') |
|
77
|
|
|
|
|
|
|
{ |
|
78
|
0
|
|
|
|
|
|
return PLS::Server::Request::Workspace::Symbol->new($request); |
|
79
|
|
|
|
|
|
|
} |
|
80
|
|
|
|
|
|
|
} ## end sub get_request |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |