Thanks to visit codestin.com
Credit goes to github.com

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 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
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
Copy link
Contributor

roomote 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
Collaborator Author

mrubens commented Jan 29, 2026

@roomote just get rid of pnpm serve

@roomote
Copy link
Contributor

roomote 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
Collaborator Author

mrubens commented Jan 29, 2026

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

@roomote
Copy link
Contributor

roomote 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
Copy link
Contributor

roomote 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
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:M This PR changes 30-99 lines, ignoring generated files.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants