Skip to content

Add support for live share #388

Closed
Closed

Description

@steven4547466

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.

Activity

  1. andreimc commented on Apr 1, 2019

    @andreimc

    @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

  2. steven4547466 commented on Apr 1, 2019

    @steven4547466
    Author

    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.

  3. andreimc commented on Apr 1, 2019

    @andreimc

    @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

  4. code-asher commented on Oct 29, 2019

    @code-asher
    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.

  5. michaeldv-pg commented on Nov 26, 2019

    @michaeldv-pg

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

  6. gotjoshua commented on Jan 8, 2020

    @gotjoshua

    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...

  7. sr229 commented on Jan 9, 2020

    @sr229
    Contributor

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

  8. Aplet123 commented on Oct 21, 2021

    @Aplet123

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

  9. jsjoeio commented on Oct 27, 2021

    @jsjoeio
    Contributor

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

  10. caioquirino commented on Nov 3, 2021

    @caioquirino

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

  11. jsjoeio commented on Nov 3, 2021

    @jsjoeio
    Contributor

    @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

  12. apoorvkh commented on Apr 18, 2023

    @apoorvkh

    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).

  13. bilogic commented on Oct 8, 2024

    @bilogic
    Contributor

    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?

  14. bilogic commented on Oct 8, 2024

    @bilogic
    Contributor

    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.

  15. Taolinyinjiu commented on Dec 10, 2024

    @Taolinyinjiu

    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

  16. ZigZagT commented on Dec 12, 2024

    @ZigZagT

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSome improvement that isn't a feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions