mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
sessions: keep run-task menu open for item actions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user