-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add support for Azure Cloud Shell code
Editor
#5636
Comments
Huh, there was another thread on this repo months ago about this but the user never actually provided any more info about what I'm very curious how that actually works in the browser. It's certainly easy enough for them to embed a JS text editor somewhere in the html of the webpage, but that would be a little trickier for us. I'll tag this up as a potential extension idea in the future, since this correlates strongly with a lot of the work we're doing there. |
code
Editor
Hi, thanks for the quick reply. Is it also possible as a workaround to use visual studio code within the azure cloud shell and launch the file in windows visual studio code like with the ubuntu wsl? |
Unfortunately, this might be something we just can't do. It only works on the web because Code can be embedded in the webapp. Hmm. |
Could you include an error message explaining that the feature isn't available? Right now if you run |
I'm not sure that's something we could control. That'd have to be a feature of the Cloud Shell itself I'm afraid. |
Are Code Tunnels an option here? On an Ubuntu VM I can run the following: wget https://code.visualstudio.com/sha/download?build=stable\&os=cli-alpine-x64 -O /tmp/code.tar.gz
sudo tar -zxvf /tmp/code.tar.gz -C /usr/local/bin && rm /tmp/code.tar.gz
code tunnel --name $(hostname) --accept-server-license-terms And awesome things happen. (Code Tunnels are so good.) I tried the following on Cloud Shell in Windows Terminal: wget https://code.visualstudio.com/sha/download?build=stable\&os=cli-alpine-x64 -O /tmp/code.tar.gz
[[ ! -d ~/.local/bin ]] && mkdir -pm 755 ~/.local/bin
tar -zxvf /tmp/code.tar.gz -C ~/.local/bin && rm /tmp/code.tar.gz
mv ~/.local/bin/code ~/.local/bin/vscode
vscode tunnel --name $(hostname | cut -c1-20) --accept-server-license-terms --no-sleep And it does the OAuth part, but then gets stuck in an API storm of some type, looping with this error: "This application has made an unusually high number of requests to access your account. Please reauthorize the application to continue." |
Environment
Steps to reproduce
Expected behavior
The azure cloud shell editor should open in the background with the provided file like explained here: https://docs.microsoft.com/en-us/azure/cloud-shell/using-cloud-shell-editor.
Actual behavior
Nothing happens no editor will be opened.
The text was updated successfully, but these errors were encountered: