-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Replace in Files can create a broken state with same file in both panes #9569
Comments
There are two bugs at play here:
So a simple fix would be to invert the if statement in Ideally, it would be nice to clean up those stray callers to stop using |
@peterflynn I was thinking that if there are no files open when the file is added to the working set on the second pane that it should probably go ahead and open the first file in the working set. I searched for "MainViewManager._edit(" and replaced with "FILE_OPEN" and at step 5 in your recipe it adds the remaining files to the second pane but none of them are open because DocumentManager just adds the files to the working set -- it doesn't open them. Should we just do that in the PR to fix this? |
@peterflynn I have a pr #9636 that fixes this. |
Confirmed. Closing. |
Result: the file jumps over to the second pane, but the working set still shows it in the first pane. The first pane is blank (without the "no editor" watermark) but its heading still shows the name of the file that is now shown in the second pane.
Expected: file is focused in first pane again, just as if you'd opened it via some other command like Quick Open.
The text was updated successfully, but these errors were encountered: