Skip to content
/ LSP Public
forked from sublimelsp/LSP

Commit

Permalink
Fix possible exception on settings change (sublimelsp#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann authored and rchl committed Nov 16, 2024
1 parent e8cbd17 commit 2323d14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ def on_post_text_command(self, command_name: str, args: dict[str, Any] | None) -
sublime.set_timeout_async(lambda: self.do_signature_help_async(manual=True))
if not self.view.is_popup_visible():
return
if command_name in ["hide_auto_complete", "move", "commit_completion"] or 'delete' in command_name:
# hide the popup when `esc` or arrows are pressed pressed
if command_name in ("hide_auto_complete", "move", "commit_completion", "delete_word", "delete_to_mark",
"left_delete", "right_delete"):
# hide the popup when `esc` or arrows are pressed
self.view.hide_popup()

@requires_session
Expand Down

0 comments on commit 2323d14

Please sign in to comment.