Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jan 13, 2026

Related GitHub Issue

Closes: #10689

Roo Code Task Context (Optional)

This PR was created by @roomote to address the enhancement request.

Description

This PR adds a new command "Roo Code: Open In Current Tab" that opens Roo Code in the current editor view without creating a new split or locking the editor group.

Key Implementation Details:

  • Added openInCurrentTab to the command IDs in packages/types/src/vscode.ts
  • Created a new openClineInCurrentTab() function in src/activate/registerCommands.ts that:
    • Uses vscode.ViewColumn.Active to open in the current view instead of calculating a new column
    • Does NOT lock the editor group (unlike openClineInNewTab), allowing files to open over the panel like normal tabs
  • Registered the new command in src/package.json
  • Added translations for "Open In Current Tab" in all 18 locale files

Difference from existing "Open In New Tab":

  • Open In New Tab: Opens in a new split to the right (lastCol + 1) and locks the editor group
  • Open In Current Tab: Opens in the active view and does not lock the editor group

Test Procedure

  1. Open VS Code with Roo Code installed
  2. Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Search for "Roo Code: Open In Current Tab"
  4. Execute the command
  5. Verify that Roo Code opens in the current editor view without creating a new split
  6. Verify that clicking on files opens them in the same view (not locked)

Automated Tests:

  • Ran existing registerCommands.spec.ts tests - all passing
  • Ran TypeScript type checking - no errors
  • Ran lint checks - no warnings

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Not applicable - no UI changes, only command palette integration.

Documentation Updates

  • No documentation updates are required.

Additional Notes

The implementation follows the same pattern as the existing openClineInNewTab function but with these key differences:

  • Uses ViewColumn.Active instead of calculating a new column
  • Skips creating a new editor group
  • Does not lock the editor group after opening

Get in Touch

This PR was created by @roomote. Feedback and guidance are welcome!


Important

Adds 'Open In Current Tab' command to Roo Code extension, allowing content to open in the current tab without creating a new split or locking the editor group, with localization support in 18 languages.

  • Behavior:
    • Adds openInCurrentTab command ID in vscode.ts.
    • Implements openClineInCurrentTab() in registerCommands.ts to open content in the current tab using vscode.ViewColumn.Active.
    • Does not lock the editor group, allowing normal tab behavior.
  • Registration:
    • Registers openInCurrentTab command in package.json.
  • Localization:
    • Adds translations for "Open In Current Tab" in 18 locale files including package.nls.json, package.nls.de.json, and package.nls.es.json.

This description was created by Ellipsis for da81595. You can customize this summary. It will automatically update as commits are pushed.

This adds a new command "Roo Code: Open In Current Tab" that opens Roo Code
in the current editor view without creating a new split or locking the
editor group. This allows users to open Roo Code like a normal tab.

The existing "Open In New Tab" command continues to work as before,
opening in a new split to the right with a locked editor group.

Closes #10689
@roomote
Copy link
Contributor Author

roomote bot commented Jan 13, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The implementation correctly adds a new "Open In Current Tab" command that opens Roo Code in the active editor column using ViewColumn.Active and does not lock the editor group, allowing files to open over the panel like normal tabs.

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

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] New shortcut Open new tab in current view

2 participants