Skip to content

Add support for live share #388

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

Closed
steven4547466 opened this issue Mar 31, 2019 · 16 comments
Closed

Add support for live share #388

steven4547466 opened this issue Mar 31, 2019 · 16 comments
Labels
enhancement Some improvement that isn't a feature

Comments

@steven4547466
Copy link

I recently got code-server running on my server, but I was unable to get live share. I know that you have to manually install it with the .vsix, which I did. However, the status bar item won't show up and I can't access any of it's commands from the command palette either. It does show that it's installed and enabled as well.
Screenshot 2019-03-31 at 12 08 50 PM
Sorry if I'm not setting it up right and it's on my side, but I tried what I knew to add this extension.

@steven4547466 steven4547466 added the enhancement Some improvement that isn't a feature label Mar 31, 2019
@andreimc
Copy link

andreimc commented Apr 1, 2019

@steven4547466 https://github.com/devonlineco/ansible-roles --> I have support for liveshare here, you need to install vscode and install the ext from microsoft and symlink. It's a closed source extension. Also doesn't work unless you open vscode first then it works in code server

Screen Shot 2019-04-01 at 2 02 46 pm

Screen Shot 2019-04-01 at 2 03 08 pm

Screen Shot 2019-04-01 at 2 03 29 pm

Screen Shot 2019-04-01 at 2 03 55 pm

Screen Shot 2019-04-01 at 2 05 24 pm

@steven4547466
Copy link
Author

steven4547466 commented Apr 1, 2019

I have a virtual private server running on Ubuntu, I tried to install vscode, but it doesn't have a desktop I can view so I don't actually know how to download vscode on it or if I even can. I did try to download it, but it disconnected me when I tried to install it via the terminal.

@andreimc
Copy link

andreimc commented Apr 1, 2019

@steven4547466 I added an ansible role in the post above, you need to install x11 and a vnc server if you want to actually launch vscode, works pretty well. But yeah you need x11 and vnc to get started as it needs to launch in vscode for the first time then it works in code-server

@code-asher
Copy link
Member

I gave this a go on v2 and it works up until I try to connect and then it just spins forever. Interestingly enough the same thing happens to me on local VS Code so I might just have something misconfigured but I haven't looked further into it yet.

@michaeldv-pg
Copy link

@code-asher Are there any ETA on Live Share?

@gotjoshua
Copy link

gotjoshua commented Jan 8, 2020

I managed to get the code-server running in a docker container and hack my way around the errors that arise when installing MS Live Share via vsix. I think that part of my solution belongs in the main repo but I didn't manage to get a full build working with an adapted Dockerfile in my fork (I guess due to build environment differences between docker-compose and travis-ci...)

So MS Live share is easy to find in vsix format online...
When I installed in a working docker container I got an error about Couldn't find a valid ICU package which was solved by extending the Dockerfile like this:

 FROM codercom/code-server:v2
 USER root
 RUN apt update && apt install icu-devtools -y
 USER 1000

Then the next error is related to "Proposed APIs" , which can be solved bu installing:
Live Share Extension Pack 0.3.4

So then the cute little Live Share Button will show in the bottom bar, but clicking it will not succeed to login and give this error:

Starting collaboration session: [ms-vsliveshare.vsliveshare]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ms-vsliveshare.vsliveshare

Does anyone know how and where to implement that command line switch or run option?
I also added an isolated issue #1263 for that specific question.
I tried to add parameters to the entrypoint like this:

ENTRYPOINT ["dumb-init", "code-server", "--host", "0.0.0.0", "--enable-proposed-api", "ms-vsliveshare.vsliveshare"]

but that didn't seem to work : -(

any help? it seems like i'm so close....

Note: This is also related to #173...

@sr229
Copy link
Contributor

sr229 commented Jan 9, 2020

Due to licensing restrictions, we will not support Live Share.

@sr229 sr229 closed this as completed Jan 9, 2020
@Aplet123
Copy link

With the release of vscode.dev, live share gained support for running on a website. Maybe it's worth taking another look at this?

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 27, 2021

I don't think we can because of licensing restrictions? 😢

@caioquirino
Copy link

Is there any way to reassess with Microsoft a way to change the licensing model for the LiveShare extension?

@jsjoeio
Copy link
Contributor

jsjoeio commented Nov 3, 2021

@caioquirino I don't think they'd be interested in doing that since Coder/code-server is a competitor to Codespaces. You may try and ask them to change it though for the betterment of the community

@apoorvkh
Copy link

Just want to say that I am currently able to download and install the .vsix, and Live Share (1.0.5857) works for me on code-server (4.11.0).

@bilogic
Copy link
Contributor

bilogic commented Oct 8, 2024

Just want to say that I am currently able to download and install the .vsix, and Live Share (1.0.5857) works for me on code-server (4.11.0).

how did you download VSIX of 1.0.5857?

@bilogic
Copy link
Contributor

bilogic commented Oct 8, 2024

This is the link https://marketplace.visualstudio.com/_apis/public/gallery/publishers/MS-vsliveshare/vsextensions/vsliveshare/1.0.5857/vspackage

Using Windows Chrome downloads the file as 6961167 bytes which installs properly.
But for some strange reason windows and linux cURL downloads it as 6,684,230 bytes which has a corruption error when installing, would be great if anyone has this figured out.

Note: I actually even copied the headers from Chrome, by right clicking on curl (bash) in the developer tools.

@Taolinyinjiu
Copy link

This is the link https://marketplace.visualstudio.com/_apis/public/gallery/publishers/MS-vsliveshare/vsextensions/vsliveshare/1.0.5857/vspackage

Using Windows Chrome downloads the file as 6961167 bytes which installs properly. But for some strange reason windows and linux cURL downloads it as 6,684,230 bytes which has a corruption error when installing, would be great if anyone has this figured out.

Note: I actually even copied the headers from Chrome, by right clicking on curl (bash) in the developer tools.

I just clicked on your connection and was able to download to 5857.vsix, which works very well on code-server deployed on my linux server.Doesn't look like this version adds too many checks on vscode?
Thank you bilogic and apoorvkh for reminding us

@ZigZagT
Copy link

ZigZagT commented Dec 12, 2024

Just want to share the latest version of live share (v1.0.5941) has stopped working for me. I had to manually ralling back to 5857 and disable auto update.


among all the versions I could install and test, 5936 was the last version that still works with code-server. The manual installing trick no longer works starting from 5940.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests