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

Editor actions in widgets stop working randomly #81272

Closed
roblourens opened this issue Sep 21, 2019 · 1 comment
Closed

Editor actions in widgets stop working randomly #81272

roblourens opened this issue Sep 21, 2019 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded

Comments

@roblourens
Copy link
Member

  • Use vscode for awhile
  • Open find widget, press enter to go to next match, or esc to close it
  • Nothing happens when I press enter or esc
  • Same in other widgets like the f2 "rename" box
  • Reload window
  • It works again

I've seen this a couple times in the past week and I debugged a bit.

It seems to go wrong at this line to pick which editor to send the command to: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/browser/editorExtensions.ts#L156

After this, editor is the debug console repl input which is not focused or open although I used it a lot in this session.

Stepping into here:

getFocusedCodeEditor(): ICodeEditor | undefined {

the repl editor claims to have widget focus. So I guess it got stuck in a state where widget focus is set to true but never reset to false. Can't figure out how to get it in or out of that state. I see this change which could be related: a98ae68

@alexdima
Copy link
Member

Thanks for tracking this down! ❤️

I've logically reverted the change in a98ae68 and also removed an old workaround that we had for IE which was the root cause of #71553

@alexdima alexdima added this to the September 2019 milestone Sep 23, 2019
@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Sep 23, 2019
@roblourens roblourens added the verified Verification succeeded label Oct 3, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 7, 2019
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants