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   47 use warnings;
  9         17  
  9         268  
4 9     9   45  
  9         73  
  9         241  
5             use parent 'PLS::Server::Request';
6 9     9   172  
  9         25  
  9         44  
7             use PLS::Parser::Document;
8 9     9   604 use PLS::Server::Request::TextDocument::PublishDiagnostics;
  9         19  
  9         297  
9 9     9   92  
  9         25  
  9         793  
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;