« blib/lib/PLS/Server/Request/Workspace/Symbol.pm
↑ Summary
blib/lib/PLS/Server/Request/TextDocument/DidSave.pm »
| 1 | package PLS::Server::Request::TextDocument::DidClose; | ||
| 2 | |||
| 3 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 13 | ▶ | use parent 'PLS::Server::Request'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 13 | ▶ | use PLS::Parser::Document; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 13 | ▶ | use PLS::Server::Request::TextDocument::PublishDiagnostics; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | PLS::Server::Request::TextDocument::DidClose | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | This is a notification from the client to the server that | ||
| 18 | a text document was closed. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | sub service | ||
| 23 | 0 | ▶ | { |
|
Subroutine
service: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | 0 | my ($self, $server) = @_; | |
| 25 | |||
| 26 | 0 | $server->send_server_request(PLS::Server::Request::TextDocument::PublishDiagnostics->new(uri => $self->{params}{textDocument}{uri}, close => 1)); | |
| 27 | |||
| 28 | 0 | my $text_document = $self->{params}{textDocument}; | |
| 29 | 0 | PLS::Parser::Document->close_file(%{$text_document}); | |
| 30 | |||
| 31 | 0 | return; | |
| 32 | } ## end sub service | ||
| 33 | |||
| 34 | 13 | 1; | |