Skip to content

feat: add pnpm serve command for code-server development#10964

Merged
mrubens merged 10 commits intomainfrom
code_server
Jan 30, 2026
Merged

feat: add pnpm serve command for code-server development#10964
mrubens merged 10 commits intomainfrom
code_server

Conversation

@mrubens
Copy link
Copy Markdown
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-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Jan 26, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

This commit renames scripts/serve.js to scripts/code-server.js to match the command name, and updates the log prefix accordingly. The package.json reference was also updated to point to the renamed file.

Previous reviews

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

@mrubens
Copy link
Copy Markdown
Collaborator Author

mrubens commented Jan 29, 2026

@roomote I already have a code-server installed and set up. Can you trim this down to just a pnpm command to bundle and install the extension to the code-server?

@roomote-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Jan 29, 2026

Coderoo Clock   See task on Roo Cloud

Simplified serve:install to only build and install the extension - removed code-server check and settings configuration. All local checks passed.

View commit | Revert commit

@mrubens
Copy link
Copy Markdown
Collaborator Author

mrubens commented Jan 29, 2026

@roomote just get rid of pnpm serve

@roomote-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Jan 29, 2026

Coderoo Clock   See task on Roo Cloud

Removed pnpm serve command as requested. The pnpm serve:install command is preserved for building and installing the extension into code-server. All local checks passed.

View commit | Revert commit

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jan 29, 2026
@mrubens
Copy link
Copy Markdown
Collaborator Author

mrubens commented Jan 29, 2026

@roomote can you rename to code-server:install?

@roomote-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Jan 29, 2026

Coderoo Clock   See task on Roo Cloud

Renamed serve:install to code-server:install in package.json and updated the documentation in serve.js. All local checks passed.

View commit | Revert commit

@roomote-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Jan 29, 2026

Coderoo Clock   See task on Roo Cloud

Renamed scripts/serve.js to scripts/code-server.js to match the command name. All local checks passed.

View commit | Revert commit

@mrubens mrubens merged commit d8f65b6 into main Jan 30, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jan 30, 2026
@mrubens mrubens deleted the code_server branch January 30, 2026 15:02
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jan 30, 2026