Skip to content

Open Symbol in Workspace is far slower than it should be #4106

Closed
@gspencergoog

Description

@gspencergoog

I've recently switched from using IntelliJ to VSCode as my full time Flutter editor, and the main thing I've noticed is that the searches for symbols are incredibly slow, when they work at all.

Often, I'll hit Ctrl-T/Cmd-T, and start typing, as I used to do with the "double-shift" from IntelliJ, and it sometimes quickly populates results for the "#" (which makes no sense, really), and then results for the first one or two letters of the search, but by the time I've completed typing the symbol I want to find, it just goes into the weeds waiting.

It will also sometimes just refuse to find a symbol that I know exists: if I let it sit there thinking for 5 minutes, it's still thinking (to make matters worse, I can't just go read email or something while it looks, because it closes when I click away from the window).

I've taken to just searching globally in the files for a symbol (Ctrl-Shift-F), and then click on a random search result, and then Ctrl-click on the symbol to go to the definition. That process should not be faster than the search for the symbol itself, but it is.

Since both IDE's searches are backed by the same analysis server, it seems like the VSCode search speed could be better. Could it be that it isn't terminating previous autocomplete searches when it gets a new letter, so they are piling up? Or some kind of deadlock or race condition?

(just FYI, I'm typically working on code in the Flutter framework itself, so there are a lot of symbols, but...)

Flutter extension: v3.46.0
Dart extension: v3.46.1
Flutter channel: master @ 5d2a13b4f0
VSCode: Version: 1.70.1 (6d9b74a70ca9c7733b29f0456fd8195364076dda)
OS: Linux x64 5.17.11-1rodete2-amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions