Skip to content

[Bug]: VS Code treats colon-number project folders as file positions #36612

Closed

Description

@StiensWout

Before submitting

  • 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

  1. On Linux or macOS, create a project directory whose name ends in a colon and digits, such as /tmp/build:2026.
  2. 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.
  3. 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.

Impact

Minor bug or occasional failure

Version or commit

pingdotgg/main @ 2b6145b

Environment

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.

Logs or stack traces

Expected: ["--new-window", "/tmp/.../build:2026"]
Actual:   ["--goto", "/tmp/.../build:2026"]

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.

Workaround

Open the project folder directly from VS Code.

Activity

  1. added
    vouch:trusted
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions