Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Ensure stopped on goto changes focus (#1668)
Browse files Browse the repository at this point in the history
* Ensure stopped on goto changes focus

* Test fix
  • Loading branch information
karthiknadig committed Aug 9, 2019
1 parent f6d04ea commit 81ac055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -303,7 +303,7 @@ def make_thread_suspend_single_notification(self, py_db, thread_id, stop_reason)
threadId=thread_id,
text=exc_name,
allThreadsStopped=True,
preserveFocusHint=stop_reason not in ['step', 'exception', 'breakpoint', 'entry'],
preserveFocusHint=stop_reason not in ['step', 'exception', 'breakpoint', 'entry', 'goto'],
)
event = pydevd_schema.StoppedEvent(body)
return NetCommand(CMD_THREAD_SUSPEND_SINGLE_NOTIFICATION, 0, event, is_json=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/session.py
Expand Up @@ -675,7 +675,7 @@ def wait_for_thread_stopped(self, reason=ANY, text=None, description=None):

assert thread_stopped.body['allThreadsStopped']
assert thread_stopped.body['preserveFocusHint'] == \
(thread_stopped.body['reason'] not in ['step', 'exception', 'breakpoint', 'entry'])
(thread_stopped.body['reason'] not in ['step', 'exception', 'breakpoint', 'entry', 'goto'])

assert tid is not None

Expand Down

0 comments on commit 81ac055

Please sign in to comment.