Skip to content

Commit

Permalink
Remove unnecessary save command
Browse files Browse the repository at this point in the history
Resolves #18
  • Loading branch information
a-laughlin authored Mar 9, 2024
1 parent 1a5112a commit dae574c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ export default class Formatter {
await commands.executeCommand(this.formatAction);
}

if (this.config.get<boolean>('formatOnSave')) {
this.logger.appendLine("Saving after formatting on save");
await commands.executeCommand('workbench.action.files.save');
}

// Return back to the original configuration
await this.config.update("defaultFormatter", this.defaultFormatter, configurationTarget, true);
}
Expand Down

0 comments on commit dae574c

Please sign in to comment.