The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 16:00 UTC
fix(server): open colon-number project folders correctly in VS Code (#36613)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Wout Stiens committed
Nov 14, 2026 at 10:38 UTC
b37c959669ca3e4757bdd84053cdb2a06c03f0ac
2 files changed
+7
-2
apps/server/src/process/externalLauncher.test.ts
+4
@@ -195,6 +195,8 @@ it.effect.skipIf(windowsHost)(
195
const codePath = path.join(binDir, "code");
196
yield* fileSystem.writeFileString(codePath, "#!/bin/sh\n");
197
yield* fileSystem.chmod(codePath, 0o755);
198
+ const colonProject = path.join(project, "build:2026");
199
+ yield* fileSystem.makeDirectory(colonProject);
200
const file = `${path.join(project, "file.ts")}:3:7`;
201
202
const spawned: ChildProcess.StandardCommand[] = [];
@@ -202,6 +204,7 @@ it.effect.skipIf(windowsHost)(
204
const launcher = yield* ExternalLauncher.ExternalLauncher;
205
yield* launcher.launchEditor({ editor: "vscode", cwd: project });
206
yield* launcher.launchEditor({ editor: "vscode", cwd: file });
207
+ yield* launcher.launchEditor({ editor: "vscode", cwd: colonProject });
208
}).pipe(
209
Effect.provide(
210
layerTest({
@@ -218,6 +221,7 @@ it.effect.skipIf(windowsHost)(
221
[
222
["--new-window", project],
223
["--goto", file],
224
+ ["--new-window", colonProject],
225
],
226
);
227
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
apps/server/src/process/externalLauncher.ts
+3
-2
@@ -149,9 +149,10 @@ function resolveCommandEditorArgs(
149
case "direct-path":
150
return [target];
151
case "goto":
152
- if (Option.isSome(parsedTarget)) return ["--goto", target];
152
+ // An existing folder wins over a position: `build:2026` is a legal folder name.
153
// Without a window flag, VS Code's window settings may replace the user's last active window.
154
- return isDirectory ? ["--new-window", target] : [target];
154
+ if (isDirectory) return ["--new-window", target];
155
+ return Option.isSome(parsedTarget) ? ["--goto", target] : [target];
156
case "line-column":
157
return Option.match(parsedTarget, {
158
onNone: () => [target],