The best way to control Claude Code, Codex and more from any computer or phone
fix(server): JetBrains IDEs open file links at the right column (#22826)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Lev Poznyakov committed
Oct 22, 2026 at 06:17 UTC
1befc717f0b277c86a066e46598e60465e7f23c2
2 files changed
+7
-6
apps/server/src/process/externalLauncher.test.ts
+5
-5
@@ -340,7 +340,7 @@ for (const {} of [
340
platform: "darwin",
341
installPath: "Applications/WebStorm.app/Contents/MacOS/webstorm",
342
editor: "webstorm",
343
- args: ["--line", "12", "--column", "4", "/workspace with spaces/file.ts"],
343
+ args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
344
},
345
{
346
platform: "darwin",
@@ -364,13 +364,13 @@ for (const {} of [
364
platform: "win32",
365
installPath: "Programs/JetBrains/WebStorm 2026.2/bin/webstorm64.exe",
366
editor: "webstorm",
367
- args: ["--line", "12", "--column", "4", "/workspace with spaces/file.ts"],
367
+ args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
368
},
369
{
370
platform: "win32",
371
installPath: "Programs/WebStorm/bin/webstorm64.exe",
372
editor: "webstorm",
373
- args: ["--line", "12", "--column", "4", "/workspace with spaces/file.ts"],
373
+ args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
374
},
375
{
376
platform: "win32",
@@ -382,7 +382,7 @@ for (const {} of [
382
platform: "linux",
383
installPath: ".local/share/JetBrains/Toolbox/scripts/idea",
384
editor: "idea",
385
- args: ["--line", "12", "--column", "4", "/workspace with spaces/file.ts"],
385
+ args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
386
},
387
{
388
platform: "linux",
@@ -472,7 +472,7 @@ it.effect.each([
472
"--line",
473
"12",
474
"--column",
475
- "4",
475
+ "3",
476
"/workspace with spaces/file.ts",
477
]);
478
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
apps/server/src/process/externalLauncher.ts
+2
-1
@@ -163,9 +163,10 @@ function resolveCommandEditorArgs(
163
onSome: ({ path, line, column }) => [
164
"--line",
165
line,
166
+ // JetBrains IDEs count `--column` from 0; targets count columns from 1.
167
...Option.match(column, {
168
onNone: () => [],
168
- onSome: (value) => ["--column", value],
169
+ onSome: (value) => ["--column", String(Math.max(0, Number(value) - 1))],
170
}),
171
path,
172
],