Skip to content

Commit

Permalink
Ensure processes are supported as a precondition for attach/detach
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jun 15, 2021
1 parent 723bdcf commit 0eda7c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/workbench/contrib/terminal/browser/terminalActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,8 @@ export function registerTerminalActions() {
id: TerminalCommandId.DetachProcess,
title: { value: localize('workbench.action.terminal.detachProcess', "Detach Process"), original: 'Detach Process' },
f1: true,
category
category,
precondition: KEYBINDING_CONTEXT_TERMINAL_PROCESS_SUPPORTED
});
}
async run(accessor: ServicesAccessor) {
Expand All @@ -865,7 +866,8 @@ export function registerTerminalActions() {
id: TerminalCommandId.AttachToRemoteTerminal,
title: { value: localize('workbench.action.terminal.attachToRemote', "Attach to Session"), original: 'Attach to Session' },
f1: true,
category
category,
precondition: KEYBINDING_CONTEXT_TERMINAL_PROCESS_SUPPORTED
});
}
async run(accessor: ServicesAccessor) {
Expand Down

0 comments on commit 0eda7c6

Please sign in to comment.