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

Support for Code Server/Visual Studio Online #118

Closed
h1nk opened this issue Aug 22, 2019 · 15 comments
Closed

Support for Code Server/Visual Studio Online #118

h1nk opened this issue Aug 22, 2019 · 15 comments
Labels
enhancement New feature or request

Comments

@h1nk
Copy link

h1nk commented Aug 22, 2019

I wanted to see if this extension would work in code-server just for fun, but sadly it does not:

image

I'm going to assume that this is well outside the realm of supported use cases, but I still wanted to ask if there is any way to get this to work.

@auchenberg-stripe
Copy link

If you open up DevTools and look at the console, do you see anything? Or what about in the output panels, @h1nk ?

@trigun539
Copy link

Yeah, this would be great if it could work with code server.

@h1nk
Copy link
Author

h1nk commented Sep 27, 2019

Chromium wasn't even installed in the Docker container I was running. It does work once installed, but entering anything into the address bar didn't seem to work and there was a bunch of other usability problems.

@auchenberg
Copy link
Owner

Given that Microsoft now have shipped http://online.visualstudio.com/, I'm renaming this issue to support of VS Online.

@auchenberg auchenberg changed the title Support for Code Server Support for Code Server/Visual Studio Online Nov 13, 2019
@auchenberg auchenberg added the enhancement New feature or request label Nov 13, 2019
@lostintangent
Copy link
Contributor

It would be amazing if we could add VSO support! 🤗 Is there anything our team (the VSO team) could do to help?

@auchenberg
Copy link
Owner

@lostintangent A model I explored in the early days was to run the Chrome instance on the remote instance to allow for example and IPad show chrome content rendered from the Linux box. Today the extension is marked as a UI extension, so it would require an API to declare the extension to remote based on what context the it's run in. Have you landed such apis?

@auchenberg
Copy link
Owner

Extension adopted to run as a workspace extension in VSC's case. Ping @lostintangent #125

@lostintangent
Copy link
Contributor

@auchenberg I just tested the bits in master, and it works in a VSO environment, including in the browser! The Live Share integration also works, which is pretty sick to see in the browser. Can you ship this update? 😎

@auchenberg
Copy link
Owner

Landed in v0.6.0

@obikay200
Copy link

hey i came accross this and think its awsome, have you got the setup steps to get this woking in code server? ive tried installing chrome but its not working...

any help would be much appreciated

@auchenberg
Copy link
Owner

@obikay200 What errors do you see?

@obikay200
Copy link

Thanks very much for the quick response, but i updated to the latest release of code-server ( 3.0.1 ) rather than latest and set permissions on the chrome binary and now it works!

@auchenberg
Copy link
Owner

Glad to hear!

@8thHalfHour
Copy link

Sorry to come along this so late, but this is not working for me when running the extension in code-server on Linux Mint 20. It works great in VSCode on that same system, but not in code-server. I keep seeing mention that chromium needs to be installed on the same system, and it is, but I also see something in these messages about setting specific permissions on the chromium binary. Can any of you explain what those permissions should be set to and give basic instructions for setting it? I am pulling my hair out trying to figure it out, and this is a go-to extension for my workflow. I’d massively appreciate it; plus it can be here for other poor saps like me trying to figure it out, Lol.

Setup:

  • Code-server v3.9.3
  • Chrome and Chromium browsers both installed locally

If you see something else I’m missing, please let me know.

@titogarrido
Copy link

Hi, I am running a code-server on ubuntu 18.04 and installed chromium-browser... When I execute via terminal, chrome works and open using an external X... But when I try it from Browser Preview it shows just a blank screen. How can I fetch errors for it?

image
image

From webconsole:

Uncaught (in promise) Error: Service Workers are not enabled in browser. Webviews will not work.
    R main.js:196
    <anonymous> main.js:194
main.js:196:16
Uncaught (in promise) TypeError: navigator.serviceWorker is undefined
    createWebviewManager main.js:266
    <anonymous> host.js:106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants