mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Ensure stopped on goto changes focus (#1668)
* Ensure stopped on goto changes focus * Test fix
This commit is contained in:
parent
f6d04ea0c7
commit
81ac055f3f
2 changed files with 2 additions and 2 deletions
|
|
@ -303,7 +303,7 @@ class NetCommandFactoryJson(NetCommandFactory):
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -675,7 +675,7 @@ class DebugSession(object):
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue