Skip to content

Commit

Permalink
on_text_command args can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleroy committed Oct 15, 2022
1 parent e8e7224 commit 49ac98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ def show_popup():
except dap.Error as e:
core.error('adapter failed hover evaluation', e)

def on_text_command(self, view: sublime.View, cmd: str, args: dict[str, Any]) -> Any:
def on_text_command(self, view: sublime.View, cmd: str, args: dict[str, Any]|None) -> Any:
if self.ignore(view): return

if (cmd == 'drag_select' or cmd == 'context_menu') and 'event' in args:
if (cmd == 'drag_select' or cmd == 'context_menu') and args and 'event' in args:
# on_view_drag_select_or_context_menu(view)

event = args['event']
Expand Down

0 comments on commit 49ac98a

Please sign in to comment.