Launch WSL editors via CLI#13648
Conversation
a9e4016 to
62ff360
Compare
62ff360 to
35e059c
Compare
|
I'm very sorry, but I have to close all of your PRs on the basis of them being fully automated coming from a profile that doesn't show much related history. Thanks a lot for your understanding. |
|
Hi Byron, thanks for the explanation. I understand the concern. These PRs were created with AI-agent assistance, and I should have made that clearer. For this one specifically, I verified the behavior in practice in a WSL setup, understand the functional intent of the change, and I’m responsible for following up on any issues or requested adjustments. To reduce review burden, would you be open to reconsidering just this focused WSL bugfix first? The intent here is narrow: make editor launching from WSL go through the CLI path so configured editors can open correctly from that environment. I’m happy to resubmit it with a shorter, more conventional PR description, add or adjust tests if needed, and avoid opening more PRs until we agree on the expected contribution process. |
🧢 Changes
vscode,vscode-insiders,vscodium,cursor,windsurf, andtraeURL schemes.editor://file/...URLs into CLI arguments, including--gotofor line/column targets.windowId=_blankbehavior by passing--new-window.☕️ Reasoning
WSL does not reliably handle desktop editor URL schemes through the normal GUI opener path. For editors that also expose a command-line launcher, invoking the CLI directly is more predictable and lets GitButler open the requested file, line, column, and project window without relying on Windows-side URL association behavior.
The fallback path is intentionally unchanged for non-WSL Linux environments and unsupported editors, so existing URL opening behavior remains in place outside this specific case.
🧪 Testing