Git uri handler clone should preserve branch #158386
Labels
feature-request
Request for new features or functionality
insiders-released
Patch has been released in VS Code Insiders
on-testplan
Milestone
This impacts Continue Working On--branch context is preserved for Clone in Container and Create New Codespace.
I propose adding a new optional query parameter to the uri handler here:
vscode/extensions/git/src/protocolHandler.ts
Lines 26 to 33 in 6cc5256
and passing that to the
git.clone
command as an optional argument herevscode/extensions/git/src/protocolHandler.ts
Line 59 in 6cc5256
Then after cloning here:
vscode/extensions/git/src/commands.ts
Lines 517 to 521 in 6cc5256
and before opening the repo in a new window, we would perform the ref checkout:
The text was updated successfully, but these errors were encountered: