Commit 0a12783
Fix filter to be treated the same as function in LSP outline view
- Add explicit comment in VisitFunctionDefinition clarifying filter
gets SymbolType.Function so it participates in the outline hierarchy
the same way regular functions do (children expand correctly)
- Update MultipleSymbols.ps1 test data so AFilter has a local variable
declaration ($FilterVar = $_), exercising filter-with-children path
- Update FindsSymbolsInFile test counts and add assertion verifying
$FilterVar inside a filter is tracked as a declaration (prerequisite
for it appearing as a child of the filter in the outline)
Agent-Logs-Url: https://github.com/PowerShell/PowerShellEditorServices/sessions/89bcabc2-3cb5-470a-8d43-bcc6adaf0c30
Co-authored-by: JustinGrote <15258962+JustinGrote@users.noreply.github.com>1 parent 45a5005 commit 0a12783
3 files changed
Lines changed: 11 additions & 3 deletions
File tree
- src/PowerShellEditorServices/Services/Symbols/Visitors
- test
- PowerShellEditorServices.Test/Language
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | | - | |
| 778 | + | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
791 | 797 | | |
792 | 798 | | |
793 | 799 | | |
| |||
0 commit comments