-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Cannot properly run multiple instances of VS Code within separate RDP sessions #132872
Comments
Is there anything you need, to further track down the problem? |
Connecting using RDP is not really the same as handling of virtual desktops. |
Yes the root issue is the default singleton instance nature of the application for both, will have to see what can be done for these scenarios. |
you can easily start a instance by "Code -n" so this is supported. There must be a routine which checks if there is an open instance when parsing the switches |
You can use this command "C:\Program Files\Microsoft VS Code\Code.exe" --user-data-dir=C:\temp%CLIENTNAME% |
"C:\Program Files\Microsoft VS Code\Code.exe" --user-data-dir=C:\temp%CLIENTNAME% |
Reproducing this now. Just to provide some context in case it helps. I had been stumped by this for months, but this issue has pointed me to what is happening- I try to use VS Code to view application log files on a Windows server. I wanted to use Code because of its live updates, and it formats the logs nicely. Also it makes it easy to search for strings. Way better than Notepad for this. I connect with RDP and open logs by right-clicking and "Open with Code." That works if I'm the only RDP session. The issue is that we often disconnect our RDP sessions, or have multiple sessions open concurrently. I might have one connected from home and a different session connected from the office. If I leave Code open in my session 1 from home, then come into the office and connect to the same server in session 2. I'll browse to the log file and open it with code in session 2. Nothing happens. If I go back home and look at session 1, I see the log is opened in that session. I didn't realize it was opening in the other session before I saw this issue. I am commenting to confirm this and to follow the issue. Very unique problem, I'm sure others have it too. |
Meet this same issue, @theplow-kwak's workaround works for me, |
Does this issue occur when all extensions are disabled?: Yes
Hello,
we are facing the following problem when using VS Code on our client's server:
If two collegues are connected onto the client's server (each with his/her own session), only one person can open VS Code. If the other person tries to launch VS Code, the window opens in the session of the first person.
This happens with all installers (including ZIP)
The image shows that we connect with the same windows user.
Is there a solution to this problem?
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: