alexiszamanidis / vscode-git-worktrees

A VS Code extension that wraps git worktree operations for simplicity and productivity
https://marketplace.visualstudio.com/items?itemName=GitWorktrees.git-worktrees
MIT License
44 stars 5 forks source link

Open the new Worktree in new Visual Studio Code instance #10

Closed rhalaly closed 1 year ago

rhalaly commented 1 year ago

First, thank you for this wonderful extension!

I tried to add a new Worktree, but after I added it, the existing VSCode restarted with the new folder. I think it is better to open a new instance of VSCode instead.

I use Worktrees for working on several branches to prevent switching. But the extension enforces me to switch between worktrees.

Can it open a new instance instead?

alexiszamanidis commented 1 year ago

Hi @rhalaly,

Great idea!

I implemented a solution for your needs.

You can add this property "vsCodeGitWorktrees.move.openNewVscodeWindow": true to your vscode settings and will be able to open new vscode instances when you switch or create a worktree.

I hope the implementation suits you!

If you have a better idea, please suggest it.

rhalaly commented 1 year ago

@alexiszamanidis Thanks for the ultra fast response! This is an amazing solution!

Can't wait to get that release!

alexiszamanidis commented 1 year ago

It has already been published.

Please let me know if everything goes well!

rhalaly commented 1 year ago

Works awesome! Thank you for the rapid response! Closing this issue 😄

alexiszamanidis commented 1 year ago

You are welcome!

I'm glad you liked it.

Thank you for your contribution!