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

VS Code extension: show children nodes when filtering #4030

Merged
merged 8 commits into from
Jan 30, 2024
Merged

VS Code extension: show children nodes when filtering #4030

merged 8 commits into from
Jan 30, 2024

Conversation

Greg-Smulko
Copy link
Contributor

Fixes #3998.

When filtering, it shows all children nodes, but the filtering target is collapsed.

Visibility works really well IMO, but there is some problem with collapsing nodes - it works overall, but not straight away. 🤷 I'm confused. :(

kiota-vscode-filtering-v1

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this. Yes I've pulled my hair a lot on the tree view and the visibility.
From what I can remember it seems that in some cases the refresh triggers a partial re-render for some reason.
So I'd suggest you set breaking points to double check whether the getCollaspedState method is called as expected, and returns the expected value for nodes.
Additionally, looking at the documentation I can see a difference in implementation which might or not have an impact.
L272, the property should be readonly.
Which means L250 we won't be able to set it externally, which means we need an optional parameter for getCollaspedState to pass an overriding value when needed.

I hope all of that helps debug things. Let me know if you have further questions.

Greg-Smulko and others added 7 commits January 29, 2024 13:52
baywet
baywet previously approved these changes Jan 29, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ready to merge if you agree with my latest changes

@baywet baywet enabled auto-merge January 30, 2024 14:06
@baywet baywet merged commit 9f47a43 into microsoft:main Jan 30, 2024
183 of 184 checks passed
@Greg-Smulko Greg-Smulko deleted the vscode-filter-show-children-nodes branch January 30, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VS Code extension filtering hides children nodes
2 participants