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