Skip to content

editor: Ensure all menus and popups are dismissed#43169

Merged
dinocosta merged 2 commits intomainfrom
42499-helix-menu-dismissal
Nov 20, 2025
Merged

editor: Ensure all menus and popups are dismissed#43169
dinocosta merged 2 commits intomainfrom
42499-helix-menu-dismissal

Conversation

@dinocosta
Copy link
Member

While investigating a bug report that, in Helix mode, pressing the escape key would only hide the signature help popup and not the completions menu, when auto_signature_help was enabled, it was noted that the editor::Editor.dismiss_menus_and_popups method was not dismissing all possible menus and popups and was, instead, stopping as soon as a single menu or popup was dismissed.

From the name of the method it appears that we actually want to dismiss all so this commit updates it as such, ensuring that the bug reported is also fixed.

Closes #42499

Release Notes:

  • Fixed issue with popups and menus not being dismissed while using auto_signature_help in Helix Mode

While investigating a bug report that, in Helix mode, pressing the
`escape` key would only hide the signature help popup and not the
completions menu, when `auto_signature_help` was enabled, it was noted
that the `editor::Editor.dismiss_menus_and_popups` method was not
dismissing all possible menus and popups and was, instead, stopping as
soon as a single menu or popup was dismissed.

From the name of the method it appears that we actually want to dismiss
all so this commit updates it as such, ensuring that the bug reported is
also fixed.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 20, 2025
@dinocosta dinocosta marked this pull request as ready for review November 20, 2025 15:25
@dinocosta dinocosta merged commit 5ef6402 into main Nov 20, 2025
36 of 38 checks passed
@dinocosta dinocosta deleted the 42499-helix-menu-dismissal branch November 20, 2025 16:25
mikayla-maki pushed a commit that referenced this pull request Nov 20, 2025
While investigating a bug report that, in Helix mode, pressing the
`escape` key would only hide the signature help popup and not the
completions menu, when `auto_signature_help` was enabled, it was noted
that the `editor::Editor.dismiss_menus_and_popups` method was not
dismissing all possible menus and popups and was, instead, stopping as
soon as a single menu or popup was dismissed.

From the name of the method it appears that we actually want to dismiss
all so this commit updates it as such, ensuring that the bug reported is
also fixed.

Closes #42499 

Release Notes:

- Fixed issue with popups and menus not being dismissed while using
`auto_signature_help` in Helix Mode
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
While investigating a bug report that, in Helix mode, pressing the
`escape` key would only hide the signature help popup and not the
completions menu, when `auto_signature_help` was enabled, it was noted
that the `editor::Editor.dismiss_menus_and_popups` method was not
dismissing all possible menus and popups and was, instead, stopping as
soon as a single menu or popup was dismissed.

From the name of the method it appears that we actually want to dismiss
all so this commit updates it as such, ensuring that the bug reported is
also fixed.

Closes zed-industries#42499 

Release Notes:

- Fixed issue with popups and menus not being dismissed while using
`auto_signature_help` in Helix Mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helix: Completion menu appears in normal mode unexpectedly

1 participant