-
Notifications
You must be signed in to change notification settings - Fork 497
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
Include regions in symbol list/outline/breadcrumbs #3210
Comments
Outline is being worked on in PowerShell/PowerShellEditorServices#1911 for quick navigation 👍 Go to symbol: Out of scope in the current PR. Does it make sense to see ex. hundreds of "#region helperfunctions" because you have them in every file? Breadcrumbs: Out of scope in the current PR. It causes trouble with outline-hierarchy because endregion could be inside ex a function, breaking the hierarchy/nesting in outline. Maybe possible after we move to newer API ( Any other languages that have these symbols-features for regions? Haven't seen any myself. |
I think we gotta prioritize doing this. I don't like using a deprecated API, but damn, keeping track of parent/child relationships when building the symbol tables doesn't seem like it'll be easy to get right.
This should "just work" unless you explicitly skip them in that logic, no? |
👍
Tracking parent should be easy. Efficiently building the symbol-tree from Parent-reference might be a bit harder. Unless we just store a list of children per symbol also. Feels redundant, but at the same time, we clear and rescan every symbol on file change so should always be in sync. (Should move this to own issue)
Yes. Intentionally ignored in PR because it felt noisy. That's why I was hoping for feedback here. Maybe it's just me. 🙂 |
There is actually "Go to Symbol In Editor" which means only the current file (and I think it's fed via |
Good catch! We got that included for free with DocumentSymbolHandler 👍 |
Resolved! |
Summary of the new feature
It'd be helpful for navigating large scripts that don't make heavy use of functions if
#region
s were available for navigation on the go to symbol menu, outline, or breadcrumbs like functions etc are now.The text was updated successfully, but these errors were encountered: