Skip to content

Commit 31188fe

Browse files
authored
add command to commands to skip shell (#238021)
1 parent c799d20 commit 31188fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ registerActiveInstanceAction({
264264
});
265265

266266
registerActiveInstanceAction({
267-
id: 'terminalSuggestToggleDetails',
268-
title: localize2('workbench.action.terminal.suggestToggleDetils', 'Suggest Toggle Details'),
267+
id: TerminalSuggestCommandId.ToggleDetails,
268+
title: localize2('workbench.action.terminal.suggestToggleDetails', 'Suggest Toggle Details'),
269269
f1: false,
270270
precondition: ContextKeyExpr.and(ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated), TerminalContextKeys.focus, TerminalContextKeys.isOpen, TerminalContextKeys.suggestWidgetVisible, SimpleSuggestContext.HasFocusedSuggestion),
271271
keybinding: {

src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.ts

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const enum TerminalSuggestCommandId {
1414
ClearSuggestCache = 'workbench.action.terminal.clearSuggestCache',
1515
RequestCompletions = 'workbench.action.terminal.requestCompletions',
1616
ResetWidgetSize = 'workbench.action.terminal.resetSuggestWidgetSize',
17+
ToggleDetails = 'workbench.action.terminal.suggestToggleDetails'
1718
}
1819

1920
export const defaultTerminalSuggestCommandsToSkipShell = [
@@ -26,4 +27,5 @@ export const defaultTerminalSuggestCommandsToSkipShell = [
2627
TerminalSuggestCommandId.HideSuggestWidget,
2728
TerminalSuggestCommandId.ClearSuggestCache,
2829
TerminalSuggestCommandId.RequestCompletions,
30+
TerminalSuggestCommandId.ToggleDetails
2931
];

0 commit comments

Comments
 (0)