You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: VS Code treats colon-number project folders as file positions #36612
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
On Linux or macOS, create a project directory whose name ends in a colon and digits, such as /tmp/build:2026.
Add it as a project and choose VS Code from OpenInPicker on a local connection, or use the favorite-editor shortcut with VS Code selected.
The launcher emits code --goto /tmp/build:2026 despite successfully identifying that exact path as a directory.
Deterministic service reproduction: extend the existing opens a project folder in a new VS Code window test in apps/server/src/process/externalLauncher.test.ts with a real build:2026 directory and expect --new-window. Run:
pnpm exec vp test run apps/server/src/process/externalLauncher.test.ts -t 'opens a project folder in a new VS Code window'
Expected behavior
Open the existing project directory in a new VS Code window using --new-window, preserving its complete name.
Actual behavior
The launcher selects --goto, whose position syntax interprets the suffix as line 2026 in the different path /tmp/build. The public launcher test reproduces the wrong arguments; no actual editor window was launched. Ordinary project folders and positioned file controls pass.
Linux reproduction with real filesystem directory and process-spawn boundary assertion. Colon filenames are also permitted on macOS; not applicable to Windows directory names. Local execution only; remote editor URLs bypass this launcher.
Found by the GPT 6.1 Sol bughunt and independently confirmed by Claude Opus 5.5. Reproduced again on current main before fixing. Related merged #34480 handles ordinary directories; this report concerns directories whose names parse as positions.
Activity