Multiple Simultaneous connections & locking issues with extensions #6931
Unanswered
sevetseh28
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I think this would have to be solved by either:
It could also be interesting to see if Codespaces behaves any differently. If it does the same thing, we can use that as leverage to report it upstream. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey @code-asher thanks so much for the reply. I'm gonna give it a try in Codespaces, I reckon the behaviour will be the same. I think Codespaces is relying on their proprietary Live Share ext for collaboration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wanted to bring up a topic and ask if anyone has any tips or ideas on how to tackle this.
I have a Java environment with a Java project and all the Java extension pack installed.
The problem is that when I connect to the code-server, the Java Language extension starts building the project and performing all necessary Gradle steps to have it working. This process works well initially and as long as I am the only one connected to the Workspace, but as soon as someone else connects to the same server, the extension starts the build process again. This triggers my initial connection extension to restart the build again (unnecessarily), entering an infinite loop and creating deadlock conditions.
I’ve considered running multiple code-server processes with different users, while sharing the workspace, but I’m uncertain about this approach. I’m also unsure if code-server / VSCode Server was designed to support multiple simultaneous connections for pair-programming or if it’s just meant to be run by a single user.
Steps to Reproduce:
1. Connect to a code-server instance with a Java project and Java extension pack installed.
2. Observe the Java Language extension starting the build process.
3. Have a second user connect to the same code-server instance.
4. Observe the Java Language extension starting the build process again, causing the initial connection to restart the build process.
I appreciate any opinions or insights into the architecture of code-server that can help me tackle this problem.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions