Skip to content

Commit 1e3291b

Browse files
committed
fix: find Windows Electron editor launchers
1 parent 76a54e6 commit 1e3291b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,12 @@ for (const { platform, installPath, editor, args } of [
947947
editor: "zed",
948948
args: ["/workspace with spaces/file.ts:12:4"],
949949
},
950+
{
951+
platform: "win32",
952+
installPath: "Programs/Cursor/resources/app/bin/cursor.cmd",
953+
editor: "cursor",
954+
args: ['^"--classic^"', '^"--goto^"', '^"/workspace^ with^ spaces/file.ts:12:4^"'],
955+
},
950956
{
951957
platform: "win32",
952958
installPath: "Programs/Microsoft VS Code/bin/code.cmd",

‎packages/shared/src/editor.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export const resolveEditorCommand = Effect.fn("editor.resolveEditorCommand")(fun
8585
: editor.label;
8686
for (const root of roots) {
8787
candidates.push(
88+
path.join(root, name, "resources/app/bin", `${command}.cmd`),
89+
path.join(root, name, "resources/app/bin/code.cmd"),
8890
path.join(root, name, "bin", `${command}.cmd`),
8991
path.join(root, name, "bin/code.cmd"),
9092
);

0 commit comments

Comments
 (0)