diff --git a/start.py b/start.py index 62a8a31..768295e 100644 --- a/start.py +++ b/start.py @@ -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']