From d6d775dd72ca3e1be6c56e45e82bc25c03ca6c53 Mon Sep 17 00:00:00 2001 From: Janos Wortmann Date: Fri, 15 Nov 2024 08:45:03 +0100 Subject: [PATCH] Fix lint errors --- plugin/core/constants.py | 2 ++ plugin/documents.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/core/constants.py b/plugin/core/constants.py index de2d85643..beae8df1c 100644 --- a/plugin/core/constants.py +++ b/plugin/core/constants.py @@ -14,6 +14,7 @@ ST_VERSION = int(sublime.version()) + class RegionKey(StrEnum): """ Key names for use with the `View.add_regions` method. """ CODE_ACTION = 'lsp_code_action' @@ -21,6 +22,7 @@ class RegionKey(StrEnum): HOVER_HIGHLIGHT = 'lsp_hover_highlight' REFERENCE_HIGHLIGHT = 'lsp_reference_highlight' + # Setting keys CODE_LENS_ENABLED_KEY = 'lsp_show_code_lens' HOVER_ENABLED_KEY = 'lsp_show_hover_popups' diff --git a/plugin/documents.py b/plugin/documents.py index 05690d897..2cb449ced 100644 --- a/plugin/documents.py +++ b/plugin/documents.py @@ -582,7 +582,7 @@ def on_post_text_command(self, command_name: str, args: dict[str, Any] | None) - if not self.view.is_popup_visible(): return if command_name in ("hide_auto_complete", "move", "commit_completion", "delete_word", "delete_to_mark", - "left_delete", "right_delete"): + "left_delete", "right_delete"): # hide the popup when `esc` or arrows are pressed self.view.hide_popup()