Skip to content

Commit d3e19e4

Browse files
committed
Skip formatting when during format-on-save, the configured formatter cannot be found (continue to show silent notification), #106376
1 parent cca20eb commit d3e19e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/editor/contrib/format/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export abstract class FormattingConflicts {
116116
if (selector) {
117117
return await selector(formatter, document, mode);
118118
}
119-
return formatter[0];
119+
return undefined;
120120
}
121121
}
122122

src/vs/workbench/contrib/format/browser/formatActionsMultiple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class DefaultFormatter extends Disposable implements IWorkbenchContribution {
121121
if (silent) {
122122
// don't wait when formatting happens without interaction
123123
// but pick some formatter...
124-
resolve(formatter[0]);
124+
resolve(undefined);
125125
}
126126
});
127127
}

0 commit comments

Comments
 (0)