history command should not activate when suggest widget is visible.
This commit is contained in:
parent
b1cd4e5411
commit
6cceea8a8a
|
@ -41,6 +41,7 @@ import { INTERACTIVE_INPUT_CURSOR_BOUNDARY } from 'vs/workbench/contrib/interact
|
|||
import { INotebookKernelService } from 'vs/workbench/contrib/notebook/common/notebookKernelService';
|
||||
import { IInteractiveDocumentService, InteractiveDocumentService } from 'vs/workbench/contrib/interactive/browser/interactiveDocumentService';
|
||||
import { IEditorOverrideService, RegisteredEditorPriority } from 'vs/workbench/services/editor/common/editorOverrideService';
|
||||
import { Context as SuggestContext } from 'vs/editor/contrib/suggest/suggest';
|
||||
|
||||
|
||||
Registry.as<IEditorRegistry>(EditorExtensions.Editors).registerEditor(
|
||||
|
@ -409,6 +410,7 @@ registerAction2(class extends Action2 {
|
|||
ContextKeyExpr.equals('resourceScheme', Schemas.vscodeInteractive),
|
||||
INTERACTIVE_INPUT_CURSOR_BOUNDARY.notEqualsTo('bottom'),
|
||||
INTERACTIVE_INPUT_CURSOR_BOUNDARY.notEqualsTo('none'),
|
||||
SuggestContext.Visible.toNegated()
|
||||
),
|
||||
primary: KeyCode.UpArrow,
|
||||
weight: KeybindingWeight.WorkbenchContrib
|
||||
|
@ -447,6 +449,7 @@ registerAction2(class extends Action2 {
|
|||
ContextKeyExpr.equals('resourceScheme', Schemas.vscodeInteractive),
|
||||
INTERACTIVE_INPUT_CURSOR_BOUNDARY.notEqualsTo('top'),
|
||||
INTERACTIVE_INPUT_CURSOR_BOUNDARY.notEqualsTo('none'),
|
||||
SuggestContext.Visible.toNegated()
|
||||
),
|
||||
primary: KeyCode.DownArrow,
|
||||
weight: KeybindingWeight.WorkbenchContrib
|
||||
|
|
Loading…
Reference in a new issue