Commit e34bc83
committed
Ignore dot-source commands when finding for Pester document symbols
This change fixes an issue in the PesterDocumentSymbolProvider where
CommandAsts for dot-sourced scripts were being evaluated by the symbol
provider and causing a crash when GetCommandName() returned null. This
change causes dot-sourced commands to now be skipped and also skips any
CommandAst which returns null for GetCommandName().
Resolves PowerShell/vscode-powershell#8591 parent 2dadd30 commit e34bc83
File tree
1 file changed
+6
-0
lines changed- src/PowerShellEditorServices/Symbols
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
0 commit comments