#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.
#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.