mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-23 09:01:16 +01:00
46b39f0077
Update the `editor::Editor.handle_modifiers_changed` method to ensure that the `editor::Editor.update_edit_prediction_preview` method is called even if edit prediction preview is disabled, if there's an active edit prediction preview. Without this change it was possible for users to get into a state where holding the modifiers to show the prediction were part of the modifiers used to disable edit prediction. When that keybinding was used, edit prediction would be disabled, but the edit prediction preview would remain as active, so the context menu for the editor would never be shown again, as the editor would assume it was still showing the edit prediction preview. Closes #40056 Release Notes: - Fixed a bug that could cause the completions menu to stop being show when edit predictions were disabled --------- Co-authored-by: dino <dinojoaocosta@gmail.com>