Skip to content

Add ability for user to cancel all simultaneously running queries #464

@aeisenberg

Description

@aeisenberg

#462 introduced multi-running queries, where a user can select multiple queries and run them all at once. However, once initiated, a user can't cancel all queries at once, only individually. This is particularly problematic when a user kicks off lots of queries.

This issue is about enabling the user to cancel all queries in a single action.

An open question is, do we want to enable the user to cancel all running queries at once, or only the queries for the particular simultaneous run?


Update

Here's a summary and rationale behind the approach.

Right now the way we register vscode commands is ad hoc and spread throughout the code. (A command is just something that runs a function whenever you perform a keystroke combination or some other task). Because of this, each command is handling it's own errors (in a somewhat consistent way). Also, progress monitors are not applied consistently, so not everything is able to be cancelled. This refactoring is about extracting all this to a single location so every command is registered consistently and this refactoring will make it possible to use a single progress monitor when running multiple queries and allow all of them to be cancelled with one click.

Metadata

Metadata

Assignees

Labels

Complexity: MediumRequires a moderate level of detail in design or review.VSCodeenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions