Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Jan 26, 2026

Summary

This adds a new pnpm serve command that builds and serves the Roo Code extension via code-server for web-based VS Code testing.

What it does

  1. Checks if code-server is installed (provides install instructions if not)
  2. Builds the extension as a vsix to a temp directory ($TMPDIR/roo-code-serve.vsix)
  3. Installs the vsix into code-server
  4. Configures user settings:
    • Disables welcome tab (workbench.startupEditor: none)
    • Hides secondary sidebar (workbench.auxiliaryBar.visible: false)
    • Disables extension recommendations (extensions.ignoreRecommendations: true)
  5. Launches code-server with flags:
    • --disable-workspace-trust: Auto-trusts the workspace
    • --disable-getting-started-override: Disables getting started overlay
    • -e: Ignores last opened directory

New Commands

  • pnpm serve - Build, install, and start code-server
  • pnpm serve:rebuild - Only rebuild and reinstall the extension (for when code-server is already running)

Prerequisites

brew install code-server

Usage

# Start code-server with the extension
pnpm serve

# In another terminal, rebuild after making changes
pnpm serve:rebuild
# Then reload the code-server window (Cmd+Shift+P → Developer: Reload Window)

Then open http://127.0.0.1:8080 in your browser.
Password is stored in ~/.config/code-server/config.yaml

Why

This enables testing the extension in a web-based VS Code environment, which is useful for:

  • Testing web-specific behavior
  • Cross-browser testing
  • Remote development scenarios

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
@mrubens mrubens requested review from cte and jr as code owners January 26, 2026 04:42
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Jan 26, 2026
@roomote
Copy link
Contributor

roomote bot commented Jan 26, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

This commit refactors the serve script by separating the "start server" and "build/install" functionality. pnpm serve now only starts code-server, while pnpm serve:install handles building and installing the extension. The naming change from serve:rebuild to serve:install better describes the command's purpose. The workflow is well-documented and the implementation is clean.

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants