Skip to content

Commit a3646bb

Browse files
committed
#fix #327
1 parent 85d1550 commit a3646bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/client/formatters/baseFormatter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export abstract class BaseFormatter {
2525
// to be done here in node (extension), i.e. extension cpu, i.e. les responsive solution
2626
let tmpFileCreated = document.isDirty;
2727
let filePromise = tmpFileCreated ? getTempFileWithDocumentContents(document) : Promise.resolve(document.fileName);
28-
return filePromise.then(filePath => {
28+
const promise = filePromise.then(filePath => {
2929
if (token && token.isCancellationRequested) {
3030
return [filePath, ''];
3131
}
@@ -43,6 +43,8 @@ export abstract class BaseFormatter {
4343
this.handleError(this.Id, command, error);
4444
return [];
4545
});
46+
vscode.window.setStatusBarMessage(`Formatting with ${this.Id}`, promise);
47+
return promise;
4648
}
4749

4850
protected handleError(expectedFileName: string, fileName: string, error: Error) {

0 commit comments

Comments
 (0)