File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/vs/workbench/services/host/browser Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,13 @@ export class BrowserHostService extends Disposable implements IHostService {
389
389
( async ( ) => {
390
390
391
391
// Wait for the resources to be closed in the text editor...
392
- await this . instantiationService . invokeFunction ( accessor => whenEditorClosed ( accessor , fileOpenables . map ( fileOpenable => fileOpenable . fileUri ) ) ) ;
392
+ const filesToWaitFor : URI [ ] = [ ] ;
393
+ if ( options . mergeMode ) {
394
+ filesToWaitFor . push ( fileOpenables [ 3 ] . fileUri /* [3] is the resulting merge file */ ) ;
395
+ } else {
396
+ filesToWaitFor . push ( ...fileOpenables . map ( fileOpenable => fileOpenable . fileUri ) ) ;
397
+ }
398
+ await this . instantiationService . invokeFunction ( accessor => whenEditorClosed ( accessor , filesToWaitFor ) ) ;
393
399
394
400
// ...before deleting the wait marker file
395
401
await this . fileService . del ( waitMarkerFileURI ) ;
You can’t perform that action at this time.
0 commit comments