File Coverage

blib/lib/PLS/Server/Request/TextDocument/DidSave.pm
Criterion Covered Total %
statement 15 19 78.9
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 1 0.0
total 20 26 76.9


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   62 use warnings;
  9         21  
  9         506  
4 9     9   70  
  9         18  
  9         309  
5             use parent 'PLS::Server::Request';
6 9     9   109  
  9         18  
  9         43  
7             use PLS::Parser::Document;
8 9     9   575 use PLS::Server::Request::TextDocument::PublishDiagnostics;
  9         74  
  9         209  
9 9     9   39  
  9         66  
  9         920  
10             =head1 NAME
11              
12             PLS::Server::Request::TextDocument::DidSave
13              
14             =head1 DESCRIPTION
15              
16             This is a notification from the client to the server that
17             a text document was saved.
18              
19             =cut
20              
21             {
22             my ($self, $server) = @_;
23              
24 0     0 0   my $uri = $self->{params}{textDocument}{uri};
25             $server->send_server_request(PLS::Server::Request::TextDocument::PublishDiagnostics->new(uri => $uri));
26 0            
27 0           return;
28             } ## end sub service
29 0            
30             1;