Skip to content

Commit 74c4382

Browse files
committed
Exclude parameters from workplace symbols
1 parent 57c563b commit 74c4382

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PowerShellEditorServices/Services/Workspace/Handlers/WorkspaceSymbolsHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public override async Task<Container<SymbolInformation>> Handle(WorkspaceSymbolP
5656
continue;
5757
}
5858

59+
if (foundOccurrence.SymbolType is SymbolType.Parameter)
60+
{
61+
continue;
62+
}
63+
5964
if (!IsQueryMatch(request.Query, foundOccurrence.SymbolName))
6065
{
6166
continue;

0 commit comments

Comments
 (0)