microsoft / microsoft/vscode

VS Code launches in the wrong RDP session

Open
#330,184 0 comments 0 reactions 1 assignee Claimed by @deepak1556 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

1. Install a Windows server with GUI (reproduced with Standard server 2019, 2025)
2. Allow multipls sessions per user with HKLM\System\CurrentControlSet\Control\TerminalServer , fSingleSessionPerUser , set to 0
3. Open a first RDP session with logon A, install VS Code in user mode & launch it
4. Open a second RDP session with logon A, Launch VS Code from start Menu.

What happens: The new window opens on the first session where there is already a VS Code window.
What I expect: VS Code window should open in the current RDP session

VS Code version: Code 1.132.0 (df53daabb18cd157bdb08c7f01c34df936cf12f4, 2026-08-04T15:30:20Z)
OS version: Windows_NT x64 10.0.17763
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz (4 x 3000)|
|GPU Status|2d_canvas: unavailable_software
GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Microsoft, DRIVER_VERSION=10.0.17763.9020 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.17763.9020
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software|
|Load (avg)|undefined|
|Memory (System)|8.00GB (2.63GB free)|
|Process Argv|--crash-reporter-id 8ed314d6-accd-4de8-832c-21d0bf912e9b|
|Screen Reader|no|
|VM|100%|
Extensions (3)

Name|Identifier|Author|Version
---|---|---|---
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
PowerShell|ms-vscode.powershell|ms-vscode|2025.4.0
vscode-pets|tonybaloney.vscode-pets|tonybaloney|1.36.0

A/B Experiments

```
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
ei9d7968:31496641
chat:31457767
ghj88844:31499326
h08i8180_copy:31475368
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
a1ije391_t:31540920
g4a0e106:31529594
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
sessions_3:31532893
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
enable_editor_pane_layout:31554332
allow-none:31555437
fd5dc207:31551400
c7c27ce7:31554789
1h923230:31564177
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
a1hcc538:31559322
ig31j696:31563976
vrbsty_tr:31561058
session-mark-done:31558131
4553j735_t_off:31563075
5b8j3302:31564172

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.