Skip to content

Commit

Permalink
Fix generation not running on already formatted file (#439)
Browse files Browse the repository at this point in the history
Authored-by: Stefan Schindler <s.schindler@microist.com>
  • Loading branch information
schindler-s authored Apr 10, 2024
1 parent 96da983 commit cb33549
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extension/sortAndFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function sortAndFormat(document: vscode.TextDocument, editor: vscod

if (text !== result && editor.document.version === version) {
await editor.edit((edit) => edit.replace(replaceRange, result));

await runGeneration();
}
await runGeneration();
}

0 comments on commit cb33549

Please sign in to comment.