EDH without a workspace folder: all coauthoring commands fail with "command not found" #8

Closed
opened 2026-06-10 21:05:39 +00:00 by benstull · 1 comment
Owner

Found: session 0007 post-ship manual play (2026-06-10). Release-blocking for the current build.

activate() returns before registering any F2/F3 commands when workspaceFolders is empty (src/extension.ts:41), so every contributed command except the POC showClineSdkInfo errors with command 'cowriting.editSelection' not found. The stock .vscode/launch.json launches the Extension Development Host without a folder, so plain F5 lands exactly in this broken state.

Fix:

  1. When no folder is open, register lightweight stubs for all contributed coauthoring commands that show a clear warning ("open a folder to use coauthoring") instead of leaving them unregistered. (Opening a folder reloads the window, so real registration happens on re-activation.)
  2. launch.json: pass the repo folder to the EDH so F5 opens a usable workspace.

Lineage: F2 #4 / F3 #6 (both commands gated behind the same guard); Epic #1.

**Found:** session 0007 post-ship manual play (2026-06-10). Release-blocking for the current build. `activate()` returns before registering any F2/F3 commands when `workspaceFolders` is empty (`src/extension.ts:41`), so every contributed command except the POC `showClineSdkInfo` errors with `command 'cowriting.editSelection' not found`. The stock `.vscode/launch.json` launches the Extension Development Host **without a folder**, so plain F5 lands exactly in this broken state. **Fix:** 1. When no folder is open, register lightweight stubs for all contributed coauthoring commands that show a clear warning ("open a folder to use coauthoring") instead of leaving them unregistered. (Opening a folder reloads the window, so real registration happens on re-activation.) 2. `launch.json`: pass the repo folder to the EDH so F5 opens a usable workspace. Lineage: F2 #4 / F3 #6 (both commands gated behind the same guard); Epic #1.
benstull added the priority/P0type/bug labels 2026-06-10 21:06:15 +00:00
benstull reopened this issue 2026-06-10 21:30:14 +00:00
Author
Owner

Reopening: the launch.json half of the fix points the EDH at ${workspaceFolder} — the repo itself — which is already open in the dev window, and VS Code refuses to open one folder in two windows, so plain F5 still lands folderless (now with the stub warning instead of "command not found"). Fix: point the EDH at a committed sandbox/ playground subfolder instead.

Reopening: the launch.json half of the fix points the EDH at `${workspaceFolder}` — the repo itself — which is already open in the dev window, and VS Code refuses to open one folder in two windows, so plain F5 still lands folderless (now with the stub warning instead of "command not found"). Fix: point the EDH at a committed `sandbox/` playground subfolder instead.
Sign in to join this conversation.