Skip to content

Commit 4885e37

Browse files
committed
fix: integ test failures in file save as
1 parent 8a199bd commit 4885e37

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/document/DocumentCommandHandlers.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,10 @@ define(function (require, exports, module) {
10731073
setTimeout(()=>{
10741074
fileOpenPromise = FileViewController
10751075
.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER);
1076+
// always configure editor after file is opened
1077+
fileOpenPromise.always(function () {
1078+
_configureEditorAndResolve();
1079+
});
10761080
}, 100); // this is in a timeout as the file tree may not have updated yet after save as
10771081
// file created, and we wait for the file watcher events to get triggered so that the file
10781082
// selection is updated.
@@ -1085,12 +1089,11 @@ define(function (require, exports, module) {
10851089

10861090
// Add new file to workingset, and ensure we now redraw (even if index hasn't changed)
10871091
fileOpenPromise = handleFileAddToWorkingSetAndOpen({fullPath: path, paneId: info.paneId, index: info.index, forceRedraw: true});
1092+
// always configure editor after file is opened
1093+
fileOpenPromise.always(function () {
1094+
_configureEditorAndResolve();
1095+
});
10881096
}
1089-
1090-
// always configure editor after file is opened
1091-
fileOpenPromise.always(function () {
1092-
_configureEditorAndResolve();
1093-
});
10941097
}
10951098

10961099
// Same name as before - just do a regular Save

0 commit comments

Comments
 (0)