Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignoring of gutter clicks when debugger not active #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def edit_breakpoints_at_line(breakpoints: Breakpoints, source_breakpoints: list[
class Listener (sublime_plugin.EventListener):

def ignore(self, view: sublime.View):
return not bool(Debugger.instances)
window = view.window()
return not window or not bool(Debugger.get(window))

@core.schedule
async def on_hover(self, view: sublime.View, point: int, hover_zone: int):
Expand Down Expand Up @@ -164,4 +165,4 @@ def on_view_gutter_clicked(self, view: sublime.View, line: int, button: int) ->
ui.InputList(items).run()

# return true if we did something
return bool(items)
return bool(items)