Opening my repo in VSCode in browser not working as expected #23926
-
There was a lot of excited clamour yesterday on Twitter (mainly prompted by a Nat Friedman tweet) about the ability to browse to a repo in the GitHub web UI, press ‘.’, and the repo would open up in an instance of VSCode running in the browser. Unfortunately when I tried it, it didn’t work. This is what got displayed: and the error I received in VSCode’s notifications pane was:
Note that this is not an open-source repo, it is not publicly available (we keep it private by virtue of being GitHub Enterprise customers). Does anyone know why this might be the case? I’m assuming its because its not an open-source repo but wanted to check. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Didn’t know about this new feature, so I tried it out on one of my repositories and it works like a charm.
jamiet-msm:
I don’t think that the license or the GitHub account type matter, but what might affect this is whether the repository is public or not — you didn’t mention it, so is the repository public or private? As for the account type, I don’t know much about Enterprise and whether it would support the same features or not. But I’d start by focusing on the repository visibility status first. |
Beta Was this translation helpful? Give feedback.
-
thx. Its a private repo and I have updated my question to be explicit about that. |
Beta Was this translation helpful? Give feedback.
-
Hey @jamiet-msm, do you see any obvious errors in your browser console or network tab? This feature should work for all public and private repositories. If your user can see the repo on github.com you should also be able to see it on github.dev. |
Beta Was this translation helpful? Give feedback.
-
Privacy Badger was causing this same symptom for me. Disabling Privacy Badger and reloading fixed it. Though I would say if the website could detect it was being blocked and indicate to the user, it would be a better UX than this pretty opaque error |
Beta Was this translation helpful? Give feedback.
-
Thanks you @brasic . I had a twitter convo with one of your GitHub colleagues and we got to the root cause: https://twitter.com/srivatsn/status/1425862550776807431?s=20. I’m getting a 403 on vscode-webview.net. Still don’t know what I can do to solve it mind you. |
Beta Was this translation helpful? Give feedback.
-
tajmone:
I thought it was an April fool thing. But now I understood. |
Beta Was this translation helpful? Give feedback.
-
@brasic We figured it out. We use zscalar (https://www.zscaler.com/) and it was zscalar that was blocking http://vscode-webview.net & http://github.vscode-unpkg.net. In the words of our zscalar admin:
|
Beta Was this translation helpful? Give feedback.
-
jamiet-msm:
Excellent! You should mark your solution as the solution. |
Beta Was this translation helpful? Give feedback.
@brasic We figured it out. We use zscalar (https://www.zscaler.com/) and it was zscalar that was blocking http://vscode-webview.net & http://github.vscode-unpkg.net.
In the words of our zscalar admin: