Open eamodio opened 6 months ago
I'm having trouble reproducing this issue, even on the "first" time. If you find some other way to get a good repro I'd like to take a look!
Possible repro steps: https://github.com/microsoft/vscode/assets/54879025/1052625a-aff6-49fc-bb07-8d8958b976ad
Reproduces easily for me
https://github.com/microsoft/vscode/assets/641685/3ad87349-c5cc-4b28-bd0a-0a56686ac8f5
I'm on Windows if that matters
I can repro 👍
I've been adding multi-select support to GitLens treeview and noticed a few issues with tree views with
canSelectMany
enabledUsing
shift-click
,ctrl-click
don't usually work correctly the "first" time, but seem to (usually) fix themselves on repeated attempts.https://github.com/microsoft/vscode/assets/641685/3b90fb79-37db-49ed-9a88-1db52e0d3217
In the above, I've made a quick modification to the TreeView Sample to enabled
canSelectMany
and just added a few more nodes to make it easier to see. And then clicked the first node, and thenshift-click
ed the last, and you can see that it didn't fully select all the nodes in between. But when I repeated theshift-click
it fixed it.I am not sure what causes it to work/not work sometimes and not others -- but it always seems to not work the first time, but there are other cases when it is just flakey.
/cc @alexr00