1
0
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:
orklah 2023-07-23 11:43:23 +02:00 committed by GitHub
commit 616d9e0b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = '';