Skip to content

Commit

Permalink
fix(ruff): ruff.fix column
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Nov 14, 2023
1 parent d6a8eb2 commit caab390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/linters/ruff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class Ruff extends BaseLinter {
const u = Uri.parse(filename).toString();
if (fix.edits && fix.edits.length) {
const changes = fix.edits.map((edit) => {
const range = Range.create(edit.location.row - 1, edit.location.column, edit.end_location.row - 1, edit.end_location.column);
const range = Range.create(edit.location.row - 1, edit.location.column - 1, edit.end_location.row - 1, edit.end_location.column - 1);
return TextEdit.replace(range, edit.content);
});
return {
Expand Down

0 comments on commit caab390

Please sign in to comment.