sessions: keep run-task menu open for item actions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Hawk Ticehurst
2026-03-25 17:01:13 -04:00
parent debd62e073
commit 0b2e44b745

View File

@@ -622,7 +622,6 @@ class RunScriptActionViewItem extends BaseActionViewItem {
class: ThemeIcon.asClassName(isPinned ? Codicon.pinned : Codicon.pin),
enabled: !!repo?.uri,
run: async () => {
this._actionWidgetService.hide();
this._sessionsConfigService.setPinnedTaskLabel(repo?.uri, isPinned ? undefined : task.label);
}
},
@@ -633,7 +632,6 @@ class RunScriptActionViewItem extends BaseActionViewItem {
class: ThemeIcon.asClassName(Codicon.gear),
enabled: true,
run: async () => {
this._actionWidgetService.hide();
await this._showCustomCommandInput(session, { task, target: entry.target }, 'configure');
}
},
@@ -644,7 +642,6 @@ class RunScriptActionViewItem extends BaseActionViewItem {
class: ThemeIcon.asClassName(Codicon.close),
enabled: true,
run: async () => {
this._actionWidgetService.hide();
await this._sessionsConfigService.removeTask(task.label, session, entry.target);
}
}