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 11     11   212 use strict;
  11         163  
  11         521  
4 11     11   97 use warnings;
  11         64  
  11         847  
5              
6 11     11   124 use parent 'PLS::Server::Request';
  11         35  
  11         663  
7              
8 11     11   1484 use PLS::Parser::Document;
  11         271  
  11         448  
9 11     11   235 use PLS::Server::Request::TextDocument::PublishDiagnostics;
  11         49  
  11         1755  
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;