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

Is it possible to know which branch is checked out via VS Code API? #470

Open
nbransby opened this issue Aug 22, 2024 · 1 comment
Open
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@nbransby
Copy link

nbransby commented Aug 22, 2024

We can know the current repository from workspace.workspaceFolders[0].uri which give vscode-vfs://github/microsoft/vscode-remote-repositories-github)

But is it possible to know which branch is active? In the case of vs web running in the browser we can test the window.location which gives https://github.dev/microsoft/vscode-remote-repositories-github/tree/main but what about when running in VS Code desktop?

@nbransby nbransby changed the title Is it possible which branch is checked out via VS Code API? Is it possible to know which branch is checked out via VS Code API? Aug 22, 2024
@joyceerhl
Copy link
Contributor

There's no API for this at the moment.

@joyceerhl joyceerhl self-assigned this Aug 22, 2024
@joyceerhl joyceerhl added the feature-request Request for new features or functionality label Aug 22, 2024
@joyceerhl joyceerhl added this to the Backlog milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants