question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vscode extension does not work on code-server

See original GitHub issue

Hi there! 👋

I created a vs-code extension for code sharing. For running extension I’m using code-server. I’m using web socket for real-time sending and receiving messaged (In this case users mouse position or text highlights).

I open every files which I want to share in browser as tabs.

BUT

When I closed all tabs, my extension goes deactivated, web socket is stopped and I got error.

OS/Web Information

  • Web Browser: chrome, firefox
  • Local OS: centos
  • Remote OS: centos
  • Remote Architecture: code-server
  • code-server --version: code-server-3.9.1-linux-amd64

Steps to Reproduce

  1. Run code-server with ( ./code-server ) command
  2. Copy my extension into ( .local/code-server/extensions ) folder
  3. Open two browser (chrome/firefox) with (http://localhost:8080) address
  4. Open share folder in browsers
  5. Open files inside share folder as tab in browsers

Expected

When user1(chrome) select part of text, user2(firefox) should see that in it’s own browser with different color, this should happens for user2 (Like micro-soft live share)

Actual

Users can select code and other user can see selection of other users BUT when closing all files error accures

Screenshot

2021-04-06T14_35_39 2021-04-06T14_35_391 2021-04f-06T14_35_39

This issue can be reproduced in VS Code: Yes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hakimehmordadicommented, Apr 7, 2021

Thank you so much @jsjoeio for your answer.

0reactions
jsjoeiocommented, Apr 7, 2021

No problem! I’m going to close this then. Feel free to file upstream and/or open a separate issue if you encounter issues with code-server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension does not work w/code-server using browser as ...
I'm running VS Code through my browser, on ChromeOS (crostini/Linux), which is hosting code-server. When I use this extension, it does not ......
Read more >
FAQ - code-server v4.8.0 docs - Coder
Why can't code-server use Microsoft's extension marketplace? Though code-server takes the open-source core of VS Code and allows you to run it in...
Read more >
Remote Development FAQ - Visual Studio Code
No. The VS Code Server is a component of the Remote Development extensions and is managed by a VS Code client. It is...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
This article covers troubleshooting tips and tricks for each of the Visual Studio Code Remote Development extensions. See the SSH, Containers, ...
Read more >
Visual Studio Code Server
The Visual Studio Code Server is a service you can run on a remote development machine, like your desktop PC or a virtual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found