GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge origin/main into t3/fix-current-branch-ref-cache · pingdotgg/t3code@2a7e779

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/process
    • externalLauncher.test.ts
    • externalLauncher.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/process/externalLauncher.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/process/externalLauncher.test.ts
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,16 @@ it.effect.skipIf(windowsHost)(
195195
const codePath = path.join(binDir, "code");
196196
yield* fileSystem.writeFileString(codePath, "#!/bin/sh\n");
197197
yield* fileSystem.chmod(codePath, 0o755);
198+
const colonProject = path.join(project, "build:2026");
199+
yield* fileSystem.makeDirectory(colonProject);
198200
const file = `${path.join(project, "file.ts")}:3:7`;
199201

200202
const spawned: ChildProcess.StandardCommand[] = [];
201203
yield* Effect.gen(function* () {
202204
const launcher = yield* ExternalLauncher.ExternalLauncher;
203205
yield* launcher.launchEditor({ editor: "vscode", cwd: project });
204206
yield* launcher.launchEditor({ editor: "vscode", cwd: file });
207+
yield* launcher.launchEditor({ editor: "vscode", cwd: colonProject });
205208
}).pipe(
206209
Effect.provide(
207210
layerTest({
@@ -218,6 +221,7 @@ it.effect.skipIf(windowsHost)(
218221
[
219222
["--new-window", project],
220223
["--goto", file],
224+
["--new-window", colonProject],
221225
],
222226
);
223227
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
Collapse file

‎apps/server/src/process/externalLauncher.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/process/externalLauncher.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ function resolveCommandEditorArgs(
149149
case "direct-path":
150150
return [target];
151151
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.
153153
// 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];
155156
case "line-column":
156157
return Option.match(parsedTarget, {
157158
onNone: () => [target],

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.