Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Nov 15, 2024
1 parent 30d6121 commit d6d775d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugin/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@

ST_VERSION = int(sublime.version())


class RegionKey(StrEnum):
""" Key names for use with the `View.add_regions` method. """
CODE_ACTION = 'lsp_code_action'
DOCUMENT_LINK = 'lsp_document_link'
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'
Expand Down
2 changes: 1 addition & 1 deletion plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d6d775d

Please sign in to comment.