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

Debug Dropdown: New items added can have hover select disabled #46011

Closed
elucidsoft opened this issue Mar 17, 2018 · 7 comments · Fixed by #46516
Closed

Debug Dropdown: New items added can have hover select disabled #46011

elucidsoft opened this issue Mar 17, 2018 · 7 comments · Fixed by #46516
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug dropdown DropDown (SelectBox widget) native and custom issues verified Verification succeeded
Milestone

Comments

@elucidsoft
Copy link

  • VSCode Version: 1.21.0
  • OS Version: Windows 10 Redstone 4 180302

Steps to Reproduce:

  1. In launch.json create a configuration type:

{ "type": "node", "request": "launch", "name": "Stuff", "program": "${workspaceFolder}\\Stuff\\run.js" },

  1. Click Save
  2. Observe correct behavior in drop down where you can select that item.
  3. Add the exact same item (change only the program path, leave name the same) as a second configuration.
    { "type": "node", "request": "launch", "name": "Stuff", "program": "${workspaceFolder}\\Stuff2\\run.js" },
  4. Observe your new item missing in drop down because you used same name.
  5. Correct same name, by changing "Stuff" to "Stuff2"
    { "type": "node", "request": "launch", "name": "Stuff2", "program": "${workspaceFolder}\\Stuff2\\run.js" },
  6. Observe your new config shows up but you can not select it. (Hover over does not highlight item, clicking does not select item)
  7. Restart VSCode
  8. Observe correct behavior.

Does this issue occur when all extensions are disabled?: Yes

@cleidigh cleidigh self-assigned this Mar 18, 2018
@cleidigh cleidigh added the dropdown DropDown (SelectBox widget) native and custom issues label Mar 18, 2018
@cleidigh
Copy link
Contributor

@isidorn
working on this. fairly certain it's related to terminal disposal and issue #43475
drop-down options get updated before the instance count is changed. non- atomic from select box view. It would be very helpful for your review once I have something finalized , I think the order of execution is very critical here.

@isidorn
Copy link
Contributor

isidorn commented Mar 19, 2018

@cleidigh thanks for looking into this. I can review the PR once it is ready.
We can verify if that is the same issue by @elucidsoft opening F1 > developer tools and checking the debug console for potential errors.

@cleidigh
Copy link
Contributor

@elucidsoft
I was able to partially reproduce your issue. While I did not have a problem with two debug configurations with the same name, I did see the hover issue. It it appears that you can still select the item with the keyboard so it's actually probably a misplaced disable class within the CSS. It is also still possibly related to another index problem with a twist on the results. StayTuned.

image

@cleidigh cleidigh added the bug Issue identified by VS Code Team member as probable bug label Mar 20, 2018
@cleidigh cleidigh changed the title Debug Dropdown won't let you select an item Debug Dropdown: New items added can have hover select disabled Mar 20, 2018
@elucidsoft
Copy link
Author

elucidsoft commented Mar 20, 2018 via email

@cleidigh
Copy link
Contributor

@elucidsoft
cc: @isidorn
I can reproduce this in several ways. It appears to be an odd "sticky" class label within the list. I have a fix , I would consider the work around. I will commit tomorrow with comments to at least avoid the problem for now. @elucidsoft do you use insiders to check after I merge?

@elucidsoft
Copy link
Author

elucidsoft commented Mar 24, 2018 via email

@cleidigh
Copy link
Contributor

@elucidsoft
Merged into master. Should be a next insiders.
I am not closing this issue as I still think this is a workaround.

@ramya-rao-a ramya-rao-a added the verified Verification succeeded label Mar 30, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 10, 2018
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 dropdown DropDown (SelectBox widget) native and custom issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants