Git Extension API not available in vscode-web debug run? #2598
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @JustinGrote , I recall detecting this in the past, and if I remember correctly, indeed, the Git extension is not available in the web. Instead, only extensions like GitHub Issues & PR or GitLab would have git operations, because those extensions would, in fact, be firing the git operations on their backends/remotely, and use a virtual file system to talk with VS Code. I guess the reason for that is because, on the web, there is no real file system to the regular git extension talk to. The Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@alefragnani Thanks for the detailed response. I guess this threw me (git being available in the dev box), as well as the fact the extension I am improving (Github Actions) appeared to expect this to be there even in web mode. I checked both vscode.dev and github.dev, and neither have a native git extension in the same way, they handle it in different ways, so this does in fact not seem to be available and I'll alter the behavior to not expect it. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @JustinGrote ,
I recall detecting this in the past, and if I remember correctly, indeed, the Git extension is not available in the web. Instead, only extensions like GitHub Issues & PR or GitLab would have git operations, because those extensions would, in fact, be firing the git operations on their backends/remotely, and use a virtual file system to talk with VS Code. I guess the reason for that is because, on the web, there is no real file system to the regular git extension talk to.
The
web dev window
you are referring to, I suppose is this method https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-web-extension-in-vs-code-running-on-desktop, right? If that's…