-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add pnpm serve command for code-server development #10964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 refactors the serve script by separating the "start server" and "build/install" functionality. Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
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: