Skip to content

Add execute buttons to editor title bar #33

@mikhail-zhadanov

Description

@mikhail-zhadanov

Problem

Users who don't know the keyboard shortcuts have no visible way to execute SQL from the editor. The only options are the command palette or right-click context menu, both requiring multiple clicks.

Proposal

Add two icon buttons to the editor title bar (top-right of editor tabs) for .exasol-sql files:

  • Execute ($(play)) — runs the statement at cursor (same as Cmd+Enter)
  • Execute Script ($(run-all)) — runs all statements in the file (same as Cmd+Alt+Enter)

Implementation

Package.json contributes.menus additions only — no code changes needed:

"editor/title": [
  {
    "command": "exasol.executeQuery",
    "when": "editorLangId == exasol-sql",
    "group": "navigation"
  },
  {
    "command": "exasol.executeScript",
    "when": "editorLangId == exasol-sql",
    "group": "navigation"
  }
]

Both commands already exist with icons ($(play) and $(run-all)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProduct feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions