mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
enable task cancellation for wizard operation (#16804)
This commit is contained in:
@@ -24,7 +24,7 @@ export class CancelAction extends Action {
|
|||||||
super(id, label);
|
super(id, label);
|
||||||
}
|
}
|
||||||
public override async run(element: TaskNode): Promise<void> {
|
public override async run(element: TaskNode): Promise<void> {
|
||||||
if (element instanceof TaskNode && element.providerName) {
|
if (element instanceof TaskNode) {
|
||||||
try {
|
try {
|
||||||
const result = await this._taskService.cancelTask(element.providerName, element.id);
|
const result = await this._taskService.cancelTask(element.providerName, element.id);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user