Closed
Description
Test plan for #3989
This feature is supposed to reopen working files that are removed from the working files list. It does not work for preview files that are not yet in the working files list. This feature contributes a command (ctrl+shift+t) and a menu item in File > Open Recent.
Basic test
- Open 2 working files, A then B
- Remove A then B from working files
- ctrl+shift+t should restore B
- ctrl+shift+t should restore A
Basic test (close all files)
- Open multiple working files, note the currently active file in the editor
- Run command
workbench.files.action.closeAllFiles
(default: ctrl+k ctrl+w - ctrl+shift+t should restore the previously active file
- ctrl+shift+t should restore the rest of the files (in no particular order)
Interesting cases
I tried to cover a range of cases, here are some of the interesting ones:
- Split editors
- Removing a working file, reopening it and then attempting to restore (it should be skipped and the previously closed working file should be restored)
- Deleting files before they are scheduled to be reopened