mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
format - extract formatting logic, make it so that we potentially run multiple providers sequentially (off for now)
This commit is contained in:
@@ -243,7 +243,7 @@ class FormatOnSaveParticipant implements ISaveParticipantParticipant {
|
||||
}, timeout);
|
||||
|
||||
request.then(edits => this._editorWorkerService.computeMoreMinimalEdits(model.uri, edits)).then(resolve, err => {
|
||||
if (!(err instanceof Error) || err.name !== NoProviderError.Name) {
|
||||
if (!NoProviderError.is(err)) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user