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

Feature: Git: option for open editor windows to change with branch #15824

Closed
josh-tepper opened this issue Nov 21, 2016 · 4 comments
Closed

Feature: Git: option for open editor windows to change with branch #15824

josh-tepper opened this issue Nov 21, 2016 · 4 comments
Labels
feature-request Request for new features or functionality git GIT issues

Comments

@josh-tepper
Copy link

josh-tepper commented Nov 21, 2016

  • VSCode Version: 1.7.1
  • OS Version: OS X, 10.11.6

I wish that I could tie the open editor windows to my git branch. Usually, each branch corresponds with a different task, and each task requires a different set of open files.

I would imagine that in such a feature, when switching to a branch not previously handled by vscode, the state would be seeded by the current set of open editors. Further, I would imagine that upon deleting a branch, that vscode's window state for that branch would be deleted.

If someone wants to work on a plugin to implement this, I'm happy to contribute, but I don't have the bandwidth or the vscode expertise to lead such an effort at this time.

@mjbvz mjbvz added feature-request Request for new features or functionality git GIT issues labels Nov 21, 2016
@KnisterPeter
Copy link
Contributor

Shouldn't that be possible with an extension? An extensions could get the open files for the current branch and when a branch is switched the open files are persisted and if there are already persisted files for the new branch that could be opened. Am I wrong?

@josh-tepper
Copy link
Author

josh-tepper commented Nov 30, 2016

I believe so, but I'm not sure. In addition to your description, it would have also to update the windows on startup as the git branch could be changed from the previous invocation of vscode. And, of course, the extension would need to be able to get some sort of event when the git branch is changed (or poll for such a change). Also, it would have to save this state information somewhere, presumably in the project.

I'm not enough of a vscode expert to say if it should or should not be implemented as an extension. I'll leave that to other people here to decide. In any event, happy to contribute to any effort to build such an extension.

@josh-tepper
Copy link
Author

Can anyone provide some guidance on this? Is anyone interested in working on an extension? Again, happy to contribute :-)

@joaomoreno
Copy link
Member

This is now fixed.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality git GIT issues
Projects
None yet
Development

No branches or pull requests

4 participants