Skip to content

Commit

Permalink
SCM - fix context key for clearing the input (microsoft#215341)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored and bricefriha committed Jun 26, 2024
1 parent 9ec92ac commit 64f9c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/scm/browser/scm.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'scm.clearInput',
weight: KeybindingWeight.WorkbenchContrib,
when: ContextKeyExpr.has('scmRepository'),
when: ContextKeyExpr.and(ContextKeyExpr.has('scmRepository'), SuggestContext.Visible.toNegated()),
primary: KeyCode.Escape,
handler: async (accessor) => {
const scmService = accessor.get(ISCMService);
Expand Down

0 comments on commit 64f9c09

Please sign in to comment.