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

Explorer: each click results in 2 open editor calls #100175

Closed
bpasero opened this issue Jun 15, 2020 · 5 comments · Fixed by #100179
Closed

Explorer: each click results in 2 open editor calls #100175

bpasero opened this issue Jun 15, 2020 · 5 comments · Fixed by #100179
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Jun 15, 2020

I tried to debug this for 1h and could not get to the bottom of it. I suspect that the same listener is created twice, but could not verify that.

Anyhow, steps:

=> 🐛 the listener is called twice and as such we try to open editors 2 times

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues labels Jun 15, 2020
@joaomoreno joaomoreno added this to the June 2020 milestone Jun 15, 2020
@joaomoreno
Copy link
Member

Let me see what I find out.

@bpasero
Copy link
Member Author

bpasero commented Jun 15, 2020

i hope this is not some weird debug issue, I would not trust the devtools on this one, listeners are weird...

@joaomoreno
Copy link
Member

Comes from these two:

this.list.setSelection([focus], e.browserEvent);
if (this.openController.shouldOpen(e.browserEvent)) {
this.list.open([focus], e.browserEvent);

We gotta kill that open controller.

@joaomoreno
Copy link
Member

joaomoreno commented Jun 15, 2020

Notes to self:

  • make sure this doesn't break: Cannot configure build tasks by clicking on the suggested bar (after trying to execute a task) #58124
  • make sure pinning still works in:
    • SCM view
    • extension views
  • make sure opening works in:
    • breakpoints view
    • open editors view
    • outline pane
    • references tree
  • make sure middle click works in:
    • open editors
    • breakpoints view
  • make sure double click works in:
    • breakpoints view
  • revisit openOnSelection and openOnFocus options
  • commentsView.ts doesn't have an accessibility provider
  • folders can be expanded with both settings

@isidorn
Copy link
Contributor

isidorn commented Jun 15, 2020

@joaomoreno I see you area already on this. Let me know how I can help. Otherwise once the PR is ready I can make sure all the views are still working as expected: open editors, explorer, debug views.

@bpasero bpasero added the verified Verification succeeded label Jun 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 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 file-explorer Explorer widget issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@joaomoreno @bpasero @isidorn and others