Repository navigation
Description
Feature Request
I often need to switch between tasks and will open a set of files for each task that I am working on. For instance, I may be working on a long-term feature ticket on the server side of my app and have open our server.js and a few other files related to the issue. I then get a hotfix that I need to take care of on the client side and need to close those tabs, open another set of client-side code files to work on that hotfix, then go back and try to remember which files I had open for the long-term feature.
It would be useful to be able to save the tab set that I have open, switch to the new task and finish it up, then simply use that saved set to reopen those tabs and restore that workspace.
Initial thoughts on feature requirements
- Ability to save a tab set with a user-specified identifier (this would save the tabs and the tab ordering)
- Ability to remove saved tab sets
- Ability to rename saved tab sets (this may add unnecessary complexity for a v1 feature)
- Menu for accessing the saved tabs, I'm thinking similar to switching files with
⌘/Ctrl+P(maybe even use that same shortcut, since it's a sort of file-switching functionality) - When accessing a tab set, either completely ignore files that no longer exist, or give a user-facing warning that certain files were not found, but still open all remaining files.
Activity
roblourens commentedon Oct 18, 2016
In your scenario, are these files different subsets of files in the same folder? If the client/server files are in different folders, it's easier :)
devtanc commentedon Oct 18, 2016
tl;dr I guess typically it's sets of files that are in different folders, but not necessarily. If that's all that can be done for now, that's definitely a step up.
It could be anywhere. It may be that I'm working on a page on the client app that hits a route on the server, which requires a something.util.js file to perform the functions on the route. I'd have those three files open as I work so that I can quickly reference what exactly is being passed from the client page in the req.body or the req.params to the server, and then what the server route code is doing to the data before it hits the util functions.
Sometimes there will need to be changes in all three/four/more files, and other times they're just open for reference.
roblourens commentedon Oct 18, 2016
Got it. This could be done by an extension, I suppose. There might be one that can do this already, if not, maybe you can give it a shot.
devtanc commentedon Oct 18, 2016
Actually, someone else pointed that out to me and I went ahead and threw together a super basic initial version. Just having some trouble getting the background tabs when the app first opens and haven't looked into persistence yet. It's called
Tab Herohttps://github.com/devtanc/vscode-tab-hero
devtanc commentedon Oct 19, 2016
roblourens I'm having difficulty interacting with the tabs, especially when the editor has first opened. Any tabs without focus on startup don't register with either
vscode.workspace.textDocumentsor withvscode.window.visibleTextEditorsuntil they are given focus, and I am unable to find another way to interact with those tabs. This seems like it may need to be a feature request for the API, since VS Code obviously knows that they're there and they were open. Seems like there should be a function onwindowthat allows the extension to see all text editors, not just the visible/active one.roblourens commentedon Oct 19, 2016
I'm not sure about that one so could you ask on Stack Overflow, or open a new issue as a feature request for a new API?
penguin020 commentedon Jun 7, 2017
Tanner C (@devtanc) - I like your idea of all things. I hope you continue work on it!
fabiospampinato commentedon Nov 8, 2017
This kind of extension can't be properly implemented because of #15178
bpasero commentedon Nov 17, 2017
This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!