mirror of
https://github.com/Microsoft/vscode
synced 2024-08-24 11:36:01 +00:00
SCM - fix context key for clearing the input (#215341)
This commit is contained in:
parent
b0a60ae2da
commit
7392790e74
|
@ -386,7 +386,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
||||||
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
||||||
id: 'scm.clearInput',
|
id: 'scm.clearInput',
|
||||||
weight: KeybindingWeight.WorkbenchContrib,
|
weight: KeybindingWeight.WorkbenchContrib,
|
||||||
when: ContextKeyExpr.has('scmRepository'),
|
when: ContextKeyExpr.and(ContextKeyExpr.has('scmRepository'), SuggestContext.Visible.toNegated()),
|
||||||
primary: KeyCode.Escape,
|
primary: KeyCode.Escape,
|
||||||
handler: async (accessor) => {
|
handler: async (accessor) => {
|
||||||
const scmService = accessor.get(ISCMService);
|
const scmService = accessor.get(ISCMService);
|
||||||
|
|
Loading…
Reference in a new issue