| 1 | package PLS::Server::Method::Workspace; | ||||||||||
| 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 PLS::Server::Request::Workspace::Configuration; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use PLS::Server::Request::Workspace::DidChangeConfiguration; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use PLS::Server::Request::Workspace::DidChangeWatchedFiles; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use PLS::Server::Request::Workspace::ExecuteCommand; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | =head1 NAME | ||||||||||
| 12 | |||||||||||
| 13 | PLS::Server::Method::Workspace | ||||||||||
| 14 | |||||||||||
| 15 | =head1 DESCRIPTION | ||||||||||
| 16 | |||||||||||
| 17 | This module redirects requests starting with C<workspace/> to the appropriate | ||||||||||
| 18 | subclass of L<PLS::Server::Request> for the type of request. | ||||||||||
| 19 | |||||||||||
| 20 | Requests currently implemented: | ||||||||||
| 21 | |||||||||||
| 22 | =over | ||||||||||
| 23 | |||||||||||
| 24 | =item workspace/didChangeConfiguration - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_didChangeConfiguration> | ||||||||||
| 25 | |||||||||||
| 26 | L<PLS::Server::Request::Workspace::DidChangeConfiguration> | ||||||||||
| 27 | |||||||||||
| 28 | =item workspace/didChangeWatchedFiles - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_didChangeWatchedFiles> | ||||||||||
| 29 | |||||||||||
| 30 | L<PLS::Server::Request::Workspace::DidChangeWatchedFiles> | ||||||||||
| 31 | |||||||||||
| 32 | =item workspace/configuration - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_configuration> | ||||||||||
| 33 | |||||||||||
| 34 | L<PLS::Server::Request::Workspace::Configuration> | ||||||||||
| 35 | |||||||||||
| 36 | =item workspace/executeCommand - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_executeCommand> | ||||||||||
| 37 | |||||||||||
| 38 | L<PLS::Server::Request::Workspace::ExecuteCommand> | ||||||||||
| 39 | |||||||||||
| 40 | =back | ||||||||||
| 41 | |||||||||||
| 42 | =cut | ||||||||||
| 43 | |||||||||||
| 44 | sub get_request | ||||||||||
| 45 | { | ||||||||||
| 46 | 0 | ▶ | my ($request) = @_; | ||||||||
|
Subroutine
get_request: not called CC=5 SCAR=34.0
Pod
undocumented
| |||||||||||
| 47 | |||||||||||
| 48 | 0 | my (undef, $method) = split '/', $request->{method}; | |||||||||
| 49 | |||||||||||
| 50 | 0 | ▶ | if ($method eq 'didChangeConfiguration') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 51 | { | ||||||||||
| 52 | 0 | return PLS::Server::Request::Workspace::DidChangeConfiguration->new($request); | |||||||||
| 53 | } | ||||||||||
| 54 | 0 | ▶ | if ($method eq 'didChangeWatchedFiles') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 55 | { | ||||||||||
| 56 | 0 | return PLS::Server::Request::Workspace::DidChangeWatchedFiles->new($request); | |||||||||
| 57 | } | ||||||||||
| 58 | 0 | ▶ | if ($method eq 'configuration') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 59 | { | ||||||||||
| 60 | 0 | return PLS::Server::Request::Workspace::Configuration->new($request); | |||||||||
| 61 | } | ||||||||||
| 62 | 0 | ▶ | if ($method eq 'executeCommand') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 63 | { | ||||||||||
| 64 | 0 | return PLS::Server::Request::Workspace::ExecuteCommand->new($request); | |||||||||
| 65 | } | ||||||||||
| 66 | } ## end sub get_request | ||||||||||
| 67 | |||||||||||
| 68 | 1 | 1; | |||||||||