-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Prevent hiding unresolved tree branches #167047
Conversation
@@ -625,6 +625,9 @@ class FindFilter<T> implements ITreeFilter<T, FuzzyScore | LabelFuzzyScore>, IDi | |||
} | |||
|
|||
if (this.tree.findMode === TreeFindMode.Filter) { | |||
if (element.hasChildren && element.childrenUnresolved) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problems reported on this line:
Property 'hasChildren' does not exist on type 'T'.
Property 'childrenUnresolved' does not exist on type 'T'.
What (if any) is the right way to resolve these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can create an additional option for the tree:
readonly defaultFindVisibility?: TreeVisibility | ((e: T) => TreeVisibility);
Will push commits to this branch.
/assign @joaomoreno |
Thanks for the effort and idea @gjsjohnmurray, this is a clever way to solve/mitigate this problem. Sorry it took me so long to get here! 🍻 Unsure if this PR should close #66971, IMO that's a larger work item. |
This PR is my second attempt at resolving #66971, following feedback from @joaomoreno on my original PR (#164472).
I am submitting it as a draft because of the 2 ts(2339) problems it contains. I will add a comment to the offending line.