| 1 | package PLS::Server::Request::TextDocument::DidChange; | ||||||||||
| 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 parent 'PLS::Server::Request'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use PLS::Parser::Document; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | PLS::Server::Request::TextDocument::DidChange | ||||||||||
| 13 | |||||||||||
| 14 | =head1 DESCRIPTION | ||||||||||
| 15 | |||||||||||
| 16 | This is a notification from the client to the server that | ||||||||||
| 17 | a text document was changed. | ||||||||||
| 18 | |||||||||||
| 19 | =cut | ||||||||||
| 20 | |||||||||||
| 21 | sub service | ||||||||||
| 22 | { | ||||||||||
| 23 | 0 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
service: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 24 | |||||||||||
| 25 | 0 | ▶ | return unless (ref $self->{params}{contentChanges} eq 'ARRAY'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | PLS::Parser::Document->update_file(uri => $self->{params}{textDocument}{uri}, changes => $self->{params}{contentChanges}); | |||||||||
| 27 | |||||||||||
| 28 | 0 | return; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||