You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?The text was updated successfully, but these errors were encountered: