Summary
Web-only VS Code extensions (extensions that declare browser but not main in package.json) that contribute a customEditor silently fail to register in code-server. The custom editor never appears in "Open With…" and files open in the default text editor. No error is surfaced to the user.
Repro
Environment:
- code-server
1.115.0 (commit 1c6fb2dc200eb57c5c7d612004e18a5e6ae8b0ed, x64)
- Host: Ubuntu 24.04 LTS, accessed via browser over Tailscale
- Fresh user install directory (no prior config)
Steps:
code-server --install-extension pomdtr.excalidraw-editor (v3.9.0)
sudo systemctl restart code-server
- Hard-reload the browser tab
- Open any
*.excalidraw file
Expected: file opens in the Excalidraw canvas editor (as it does in VS Code Desktop and vscode.dev).
Actual: file opens in the plain-text JSON editor. "Open With…" does not list "Excalidraw Editor". No error in the extension host log. The extension is installed and listed via code-server --list-extensions.
Affected extensions (all web-only customEditor contributors)
| Extension |
Version |
browser |
main |
pomdtr.excalidraw-editor |
3.9.0 |
./dist/extension.js |
(none) |
lrstanley.excalidraw-editor |
3.7.4 |
./dist/extension.js |
(none) |
telesoho.excalidraw-editor-cj |
3.4.6 |
./dist/extension.js |
(none) |
Same pattern observed with other web-only customEditor extensions.
Expected behavior
Either:
- Web-only extensions with customEditor contributions load correctly (they work in VS Code Desktop's webview and in vscode.dev), OR
- code-server surfaces a clear error at install time or file-open time explaining that web-only custom editors are not supported in this environment, so users can choose an alternative.
Current silent failure is the worst of both worlds.
Verification that extension is installed
$ code-server --list-extensions --show-versions
pomdtr.excalidraw-editor@3.9.0
Extension directory structure is intact:
~/.local/share/code-server/extensions/pomdtr.excalidraw-editor-3.9.0-universal/
├── assets/
├── dist/extension.js
├── package.json
└── webview/
Happy to provide logs or test a patch if someone picks this up.
Summary
Web-only VS Code extensions (extensions that declare
browserbut notmaininpackage.json) that contribute acustomEditorsilently fail to register in code-server. The custom editor never appears in "Open With…" and files open in the default text editor. No error is surfaced to the user.Repro
Environment:
1.115.0(commit1c6fb2dc200eb57c5c7d612004e18a5e6ae8b0ed, x64)Steps:
code-server --install-extension pomdtr.excalidraw-editor(v3.9.0)sudo systemctl restart code-server*.excalidrawfileExpected: file opens in the Excalidraw canvas editor (as it does in VS Code Desktop and vscode.dev).
Actual: file opens in the plain-text JSON editor. "Open With…" does not list "Excalidraw Editor". No error in the extension host log. The extension is installed and listed via
code-server --list-extensions.Affected extensions (all web-only customEditor contributors)
browsermainpomdtr.excalidraw-editor./dist/extension.jslrstanley.excalidraw-editor./dist/extension.jstelesoho.excalidraw-editor-cj./dist/extension.jsSame pattern observed with other web-only customEditor extensions.
Expected behavior
Either:
Current silent failure is the worst of both worlds.
Verification that extension is installed
Extension directory structure is intact:
Happy to provide logs or test a patch if someone picks this up.