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             package PLS::Server::Request::TextDocument::DidSave;
2              
3 9     9   56 use strict;
  9         74  
  9         250  
4 9     9   110 use warnings;
  9         18  
  9         231  
5              
6 9     9   125 use parent 'PLS::Server::Request';
  9         18  
  9         147  
7              
8 9     9   635 use PLS::Parser::Document;
  9         92  
  9         302  
9 9     9   46 use PLS::Server::Request::TextDocument::PublishDiagnostics;
  9         23  
  9         977  
10              
11             =head1 NAME
12              
13             PLS::Server::Request::TextDocument::DidSave
14              
15             =head1 DESCRIPTION
16              
17             This is a notification from the client to the server that
18             a text document was saved.
19              
20             =cut
21              
22             sub service
23             {
24 0     0 0   my ($self, $server) = @_;
25              
26 0           my $uri = $self->{params}{textDocument}{uri};
27 0           $server->send_server_request(PLS::Server::Request::TextDocument::PublishDiagnostics->new(uri => $uri));
28              
29 0           return;
30             } ## end sub service
31              
32             1;