Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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#859
- Loading branch information