Skip to content

[Feature]: Add Terminal in Editor to the terminal + menu #1683

Description

@newhoggy

Is your feature request related to a problem?

The terminal toolbar's existing + ▾ menu provides a convenient place to launch terminals, but omni-dev does not currently offer an entry there that opens a terminal directly in the editor area.

Describe the solution you'd like

Add a Terminal in Editor profile to the existing + ▾ menu through the omni-dev VS Code extension. Selecting it should create and focus a new shell terminal as an editor tab.

Acceptance criteria:

  • The entry appears alongside the other terminal profiles in the existing + ▾ menu.
  • Selecting it opens and focuses a new terminal in the editor area, even when launched from the terminal panel's menu.
  • Each selection creates a new terminal.
  • Use the user's normal shell and workspace working-directory behavior.
  • Existing profiles and the default + action retain their current behavior.

Describe alternatives you've considered

Use the Command Palette to create a terminal in the editor area, or move an existing terminal into the editor area. A separate toolbar button was also considered; the requested entry belongs in the existing + ▾ menu.

Use Case

Launch a shell directly beside source files as an editor tab using the familiar terminal creation menu.

Priority

Not specified.

Additional Context

Implementation approach: declare a profile under contributes.terminal.profiles in editors/vscode/package.json, register a TerminalProfileProvider, and return a TerminalProfile with location: vscode.TerminalLocation.Editor. Register the provider with the extension's subscriptions for disposal.

Verify the location behavior through the actual + ▾ menu on the extension's supported VS Code versions.

API references:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions