Skip to content

Should we limit maximum amount of symbols returned by workspaceSymbomProvider? #1808

@SirIntruder

Description

@SirIntruder

VS 17.2, c# 1.12, WIn 10

My current workspace has >30.000 symbols, which make vscode symbol search almost unusable.
Problem is that when search term is empty string, all symbols are returned, and vscode dropdown UI takes FOREVER with inserting 30.000 items in the dropdown UI.

I posted this issue to vscode repo:
microsoft/vscode#36941

I later saw somobody had a similar issue with vscode with IIRC PHP, half a year ago. Sombody said another language ext solved the issue by capping resulting symbol list, which makes sense since nobody wants to scroll in the dropdown with tens of thousands of elements - they will narrow down the search until item they are looking for appears close to the top.

Which you can't do in big workspaces currently, since search is so unresponsive.

Another thing to consider is to handle case when search term is empty string specifically, since that's the one that is causing most problems. Personaly, I quick fixed the problem for myself by just returning empty list when search terms are empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions