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.
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.swiftbuilds them,ResultTabBarshows 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
ResultSet.Depends on
#2278, which is where statement ranges come from.