mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Merge pull request #10034 from vimeo/fix-incorrect-positions-sent-in-codeactions-edits
Fix incorrect positions set in code action edits
This commit is contained in:
commit
616d9e0b82
@ -435,8 +435,8 @@ class TextDocument
|
||||
//$contents = $this->codebase->file_provider->getContents($file_path);
|
||||
|
||||
$snippetRange = new Range(
|
||||
new Position($data['line_from']-1),
|
||||
new Position($data['line_to']),
|
||||
new Position($data['line_from'] - 1, 0),
|
||||
new Position($data['line_to'], 0),
|
||||
);
|
||||
|
||||
$indentation = '';
|
||||
|
Loading…
Reference in New Issue
Block a user