File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments