Move terminal commands into skipped commands
Also add the rest of the commands. Part of #10302
This commit is contained in:
parent
3670165658
commit
6bc4cbc136
|
@ -97,8 +97,19 @@ configurationRegistry.registerConfiguration({
|
|||
'default': [
|
||||
ToggleTabFocusModeAction.ID,
|
||||
GlobalQuickOpenAction.ID,
|
||||
ShowAllCommandsAction.ID
|
||||
]
|
||||
ShowAllCommandsAction.ID,
|
||||
CreateNewTerminalAction.ID,
|
||||
CopyTerminalSelectionAction.ID,
|
||||
KillTerminalAction.ID,
|
||||
FocusTerminalAction.ID,
|
||||
FocusPreviousTerminalAction.ID,
|
||||
FocusNextTerminalAction.ID,
|
||||
TerminalPasteAction.ID,
|
||||
RunSelectedTextInTerminalAction.ID,
|
||||
ToggleTerminalAction.ID,
|
||||
ScrollDownTerminalAction.ID,
|
||||
ScrollUpTerminalAction.ID
|
||||
].sort()
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -15,7 +15,6 @@ import {IKeybindingService, IKeybindingContextKey} from 'vs/platform/keybinding/
|
|||
import {IMessageService, Severity} from 'vs/platform/message/common/message';
|
||||
import {ITerminalFont} from 'vs/workbench/parts/terminal/electron-browser/terminalConfigHelper';
|
||||
import {ITerminalProcess, ITerminalService} from 'vs/workbench/parts/terminal/electron-browser/terminal';
|
||||
import {ScrollDownTerminalAction, ScrollUpTerminalAction} from 'vs/workbench/parts/terminal/electron-browser/terminalActions';
|
||||
import {IWorkspaceContextService} from 'vs/platform/workspace/common/workspace';
|
||||
import {Keybinding} from 'vs/base/common/keyCodes';
|
||||
import {StandardKeyboardEvent} from 'vs/base/browser/keyboardEvent';
|
||||
|
@ -166,11 +165,7 @@ export class TerminalInstance {
|
|||
}
|
||||
|
||||
public setCommandsToSkipShell(commands: string[]): void {
|
||||
this.skipTerminalKeybindings = commands.concat([
|
||||
// Terminal related keybindings that must pass through or they would not function
|
||||
ScrollDownTerminalAction.ID,
|
||||
ScrollUpTerminalAction.ID
|
||||
]).map((c) => {
|
||||
this.skipTerminalKeybindings = commands.map((c) => {
|
||||
return this.keybindingService.lookupKeybindings(c);
|
||||
}).reduce((prev, curr) => {
|
||||
return prev.concat(curr);
|
||||
|
|
Loading…
Reference in a new issue