Skip to content

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

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.

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