Skip to content

Link each result set back to the statement that produced it #2280

Closed

Description

@datlechin

What

Make each result set remember which statement produced it, and use that link in both directions.

Why

Running several statements in one tab already produces one result set per statement, each with its own tab in the result bar (QueryExecutionCoordinator+MultiStatement.swift builds them, ResultTabBar shows them). The link stops at a label. Clicking a result tells you nothing about which query made it, and running a statement does not bring its result forward.

Scope

  • Carry the statement's character offset on ResultSet.
  • Running a statement selects the result set it produced.
  • Selecting a result set moves the editor cursor to the statement that produced it.

Depends on

#2278, which is where statement ranges come from.

Activity

  1. added
    enhancement
    on Aug 20, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions