Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Provide command to open most recently closed file/editor #5586

Closed
3 tasks done
Tyriar opened this issue Apr 21, 2016 · 0 comments
Closed
3 tasks done

Test: Provide command to open most recently closed file/editor #5586

Tyriar opened this issue Apr 21, 2016 · 0 comments

Comments

@Tyriar
Copy link
Member

Tyriar commented Apr 21, 2016

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

  1. Open 2 working files, A then B
  2. Remove A then B from working files
  3. ctrl+shift+t should restore B
  4. ctrl+shift+t should restore A

Basic test (close all files)

  1. Open multiple working files, note the currently active file in the editor
  2. Run command workbench.files.action.closeAllFiles (default: ctrl+k ctrl+w
  3. ctrl+shift+t should restore the previously active file
  4. 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants