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

Focus not restored properly after hovering over a symbol while debugging #90167

Closed
GoaLitiuM opened this issue Feb 6, 2020 · 1 comment
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@GoaLitiuM
Copy link

When debugging and having the debugger on break, hovering over any symbol changes the cursor focus to text editor instead of back to the UI element which was previously focused on. This issue manifests when I use the document search while the debugger is paused and the focus suddenly changes back to editor without touching any keys other than enter in order to jump to the next search result.

To Reproduce

  1. Start debugging the application.
  2. Hit Pause in debugger.
  3. Open up the document search box (CTRL-F) and type something in the field.
  4. Move the mouse cursor over any symbol (function, variable etc.) in the editor which prompts the inspector/info box.
  5. Move the cursor away to dismiss the info box.
  6. Observe the focus changing back to the previous cursor location in text editor instead of back to the search box.

Expected behavior
The focus should be restored back to the previously active element instead of the text editor.

  • OS and Version: Windows 10
  • VS Code Version: 1.41.1
@octref octref assigned isidorn and unassigned octref Feb 6, 2020
@isidorn isidorn closed this as completed in 2c0e534 Feb 7, 2020
@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 7, 2020
@isidorn isidorn added this to the February 2020 milestone Feb 7, 2020
@isidorn
Copy link
Contributor

isidorn commented Feb 7, 2020

Thanks for filling this issue. We have pushed a fix and you can try vscode insiders from next week to verify the issue got fixed.
Now we only focus back the editor if the debug hover actually had focus.

@connor4312 connor4312 added the verified Verification succeeded label Feb 27, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants