From dae574c86ac847b4dae27e3529707985a845b0e4 Mon Sep 17 00:00:00 2001 From: Adam Laughlin Date: Sat, 9 Mar 2024 11:35:45 -0700 Subject: [PATCH] Remove unnecessary save command Resolves https://github.com/jota0222/MultiFormatterVSCode/issues/18 --- src/formatter.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/formatter.ts b/src/formatter.ts index b0618aa..5ce3ac9 100644 --- a/src/formatter.ts +++ b/src/formatter.ts @@ -124,11 +124,6 @@ export default class Formatter { await commands.executeCommand(this.formatAction); } - if (this.config.get('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); }