Skip to content

Commit

Permalink
Merge pull request #10034 from vimeo/fix-incorrect-positions-sent-in-…
Browse files Browse the repository at this point in the history
…codeactions-edits

Fix incorrect positions set in code action edits
  • Loading branch information
orklah committed Jul 23, 2023
2 parents 9c814c8 + eaf41a1 commit 616d9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/LanguageServer/Server/TextDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ public function codeAction(TextDocumentIdentifier $textDocument, Range $range, C
//$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 = '';
Expand Down

0 comments on commit 616d9e0

Please sign in to comment.