feat: add pnpm serve command for code-server development#10964
feat: add pnpm serve command for code-server development#10964
Conversation
This adds a new `pnpm serve` command that: - Builds the extension as a vsix to a temp directory - Installs it into code-server - Configures user settings (disable welcome tab, workspace trust, etc.) - Launches code-server at http://127.0.0.1:8080 Prerequisites: brew install code-server Usage: pnpm serve
Adds a --rebuild-only flag to the serve script that: - Rebuilds and reinstalls the extension - Skips starting code-server - Provides instructions to reload the window Usage: pnpm serve:rebuild
Review complete. No issues found. This commit renames Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
|
@roomote I already have a |
Simplified |
|
@roomote just get rid of |
Removed |
|
@roomote can you rename to |
Renamed |
Renamed |
Summary
This adds a new
pnpm servecommand that builds and serves the Roo Code extension via code-server for web-based VS Code testing.What it does
$TMPDIR/roo-code-serve.vsix)workbench.startupEditor: none)workbench.auxiliaryBar.visible: false)extensions.ignoreRecommendations: true)--disable-workspace-trust: Auto-trusts the workspace--disable-getting-started-override: Disables getting started overlay-e: Ignores last opened directoryNew Commands
pnpm serve- Build, install, and start code-serverpnpm serve:rebuild- Only rebuild and reinstall the extension (for when code-server is already running)Prerequisites
Usage
Then open http://127.0.0.1:8080 in your browser.
Password is stored in
~/.config/code-server/config.yamlWhy
This enables testing the extension in a web-based VS Code environment, which is useful for: