-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Find in Outline View not working #233185
Comments
Perhaps some upcoming improvements to the tree find feature (Ctrl+Alt+F) so it can filter on folder names, not just leaf names, may help here. Pinging @benibenj |
@jrieken - interesting, how did you get that dialog? It's not shown for me (at least not obviously). |
Ctrl+Alt+F (macOS: Cmd+Alt+F) |
Thanks @jrieken! I did not know about that shortcut. Unfortunately it appears to operate only on the item text, whereas the requested enhancement would need to consider information not shown in that text (class scope, file name, etc.). |
The original tree find's filter mode displays unresolved folders regardless of whether or not their names match, so you can expand (i.e. resolve) them. When a non-matching folder has been resolved and contains no unresolved child folders it will get filtered out unless any of its leaf children match. Recent work by @benibenj in the Explorer tree reworked this behaviour, but AFAIK (a) the new filtering only looks at leaf nodes (i.e. in the Explorer case, filenames), and (b) is (or maybe will be) an opt-in for other instances of the tree. |
The |
@benibenj - appreciate the fix, but how does this apply to filtering by scope (e.g., functions in the current file/class versus those in other files/classes or built-in functions? |
I created this feature request to handle your use case: #233394 |
The "Show Call Hierarchy" is an amazingly useful feature for understanding code structure! But sometimes it can display too much information.
Let's say I want to understand how Python's
pprint.pprint()
function works. If I perform the following steps:Enter the following Python code in VSCode:
Right-click the
pprint("hello world")
function call and choose "Show Call Hierarchy".Click the "Show Outgoing Calls" button at the top-right of the call history view:
I can explore the call hierarchy to get results as follows (apologies for length, but it's sort of the the point):
The functions and methods defined by the
pprint
module are in there, but they are obscured among a sea of Python built-in dataclass/typing/etc. entries.It would be extremely useful to have some way to filter the results by scope and/or file.
The text was updated successfully, but these errors were encountered: