diff --git a/src/features/providers/formatter/format.ts b/src/features/providers/formatter/format.ts index 734150a..8a88daa 100644 --- a/src/features/providers/formatter/format.ts +++ b/src/features/providers/formatter/format.ts @@ -26,6 +26,10 @@ export class FormattingProvider implements vscode.DocumentFormattingEditProvider return []; } + if (document && document.isUntitled && document.getText() === "") { + return []; + } + Utilities.appendHyphenatedLine(); Utilities.outputChannel.appendLine(`Format triggered for ${filePath}`);