You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Since 1.94 the Find widget on Explorer no longer works for a FileSystemProvider-implemented folder unless FileSearchProvider is also implemented #230483
bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseconfirmedIssue has been confirmed by VS Code Team memberverifiedVerification succeeded
I can't seem to repro this on insiders. Benjamin Christopher Simmonds (@benibenj) did you recently adopt file searching from the search service? And if so, is it behind a feature flag?
Andrea Mah (@andreamah) when trying to repro it with fsprovider-sample make sure you don't have any folders open in the EH when you run MemFS: Setup Workspace
Okay I see it now. I see that we have a check where, if there is just one provider type that we are looking for, we wait for it. However, in this case, it isn't being registered. We probably do this because we need to wait for extensions to register their providers.
I could add a flag (or a list of provider schemes) in settings for not waiting for search providers that aren't registered, and this would be temporary until we finalize the API. Does that sound reasonable?
I was originally thinking about a timeout, but it can sometimes take a while for providers to get registered (especially on startup). If we have a setting, people who know that they don't need to wait will not have to wait.
I would prefer that Explorer Find reverted to its old way of finding if there's no applicable FileSearchProvider available (either because it hasn't yet registered or because none is implemented). As things stand, users of our FileSystemProvider have lost all search/filter capabilities in the Explorer tree unless they are willing to jump through the extra hoops to use a build that implements the still-proposed FileSearchProvider API. This feels like a regression.
Benjamin Christopher Simmonds (@benibenj) would you be open to calling an arg on SearchService to not wait for providers that haven't been registered yet? The implication is that, on platforms like vscode.dev that have a custom search provider, you might get no results if the search provider hasn't been registered yet.
I suggest creating a candidate for this. To keep this simple I propose that the explorer checks if the resource scheme of the root(s) is 'file'. If that is not the case, we revert back to the old behaviour. I still need to check other potential schemes to include too.
For insiders:
It would be great to have a way to tell if there is a search provider available or not for a given scheme, so we know which find behaviour to pick.
Regarding the fuzzy toggle, we could remove it for search providers provided by extensions until the API gets finalized.
I can still reproduce an endless progress spinner following the exact same steps in #230483 (comment). Maybe John Murray (@gjsjohnmurray) could also test with our 1.94.2 release candidate (Download) if something improved for him.
I have verified that the recovery fix by Benjamin Christopher Simmonds (@benibenj) is good. For a workspace using our FileSystemProvider the Explorer Find widget no longer produces a constant clock badge and progress bar on the Explorer icon in Activity Bar.
In Search view there's a constant clock badge and progress bar, but I don't think that was new in 1.94. Andrea Mah (@andreamah) should be able to confirm that the way Search waits (in vain) indefinitely for a TextSearchProvider to get registered for the only scheme involved in my workspace (from an extension-contributed FSP) was happening prior to 1.94. Even if it was new in 1.94 it's a separate (though related) issue that IMO shouldn't delay shipping 1.94.2.
John Murray (@gjsjohnmurray) I can still reproduce your original issue when you are in a multi-root workspace where 1 folder is local and 1 is from the memory-fs provider, so maybe that explains the difference in testing outcome.
If there is just 1 memory-fs provided folder in the explorer, I can see that the fix seems to be working.
bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseconfirmedIssue has been confirmed by VS Code Team memberverifiedVerification succeeded
Activity
gjsjohnmurray commentedon Oct 4, 2024
pinging Benjamin Christopher Simmonds (@benibenj) and Andrea Mah (@andreamah)
gjsjohnmurray commentedon Oct 4, 2024
Related to this, the FileSearchProvider doesn't get informed about
shouldGlobMatchFilepattern. It has to infer this from the shape offilePatternvscode/src/vs/workbench/contrib/files/browser/views/explorerView.ts
Lines 190 to 192 in fe391be
andreamah commentedon Oct 4, 2024
I can't seem to repro this on insiders. Benjamin Christopher Simmonds (@benibenj) did you recently adopt file searching from the search service? And if so, is it behind a feature flag?
gjsjohnmurray commentedon Oct 4, 2024
Andrea Mah (@andreamah) when trying to repro it with fsprovider-sample make sure you don't have any folders open in the EH when you run MemFS: Setup Workspace
andreamah commentedon Oct 4, 2024
Okay I see it now. I see that we have a check where, if there is just one provider type that we are looking for, we wait for it. However, in this case, it isn't being registered. We probably do this because we need to wait for extensions to register their providers.
I could add a flag (or a list of provider schemes) in settings for not waiting for search providers that aren't registered, and this would be temporary until we finalize the API. Does that sound reasonable?
I was originally thinking about a timeout, but it can sometimes take a while for providers to get registered (especially on startup). If we have a setting, people who know that they don't need to wait will not have to wait.
gjsjohnmurray commentedon Oct 4, 2024
I would prefer that Explorer Find reverted to its old way of finding if there's no applicable FileSearchProvider available (either because it hasn't yet registered or because none is implemented). As things stand, users of our FileSystemProvider have lost all search/filter capabilities in the Explorer tree unless they are willing to jump through the extra hoops to use a build that implements the still-proposed FileSearchProvider API. This feels like a regression.
andreamah commentedon Oct 4, 2024
Benjamin Christopher Simmonds (@benibenj) would you be open to calling an arg on
SearchServiceto not wait for providers that haven't been registered yet? The implication is that, on platforms likevscode.devthat have a custom search provider, you might get no results if the search provider hasn't been registered yet.benibenj commentedon Oct 5, 2024
Andrea Mah (@andreamah) is it possible to tell if there is a File Search Provider available for a given scheme?
benibenj commentedon Oct 5, 2024
I suggest creating a candidate for this. To keep this simple I propose that the explorer checks if the resource scheme of the root(s) is 'file'. If that is not the case, we revert back to the old behaviour. I still need to check other potential schemes to include too.
For insiders:
9 remaining items
rzhao271 commentedon Oct 9, 2024
I still see the issue on the latest Stable RC while following the original repro steps.

Re-opening.
benibenj commentedon Oct 10, 2024
The warning seems to be triggered by the search view and not the explorer search.
bpasero commentedon Oct 10, 2024
I can still reproduce an endless progress spinner following the exact same steps in #230483 (comment). Maybe John Murray (@gjsjohnmurray) could also test with our
1.94.2release candidate (Download) if something improved for him.gjsjohnmurray commentedon Oct 10, 2024
Benjamin Pasero (@bpasero) I will check that RC and report back here ASAP
gjsjohnmurray commentedon Oct 10, 2024
I have verified that the recovery fix by Benjamin Christopher Simmonds (@benibenj) is good. For a workspace using our FileSystemProvider the Explorer Find widget no longer produces a constant clock badge and progress bar on the Explorer icon in Activity Bar.
In Search view there's a constant clock badge and progress bar, but I don't think that was new in 1.94. Andrea Mah (@andreamah) should be able to confirm that the way Search waits (in vain) indefinitely for a TextSearchProvider to get registered for the only scheme involved in my workspace (from an extension-contributed FSP) was happening prior to 1.94. Even if it was new in 1.94 it's a separate (though related) issue that IMO shouldn't delay shipping 1.94.2.
bpasero commentedon Oct 10, 2024
John Murray (@gjsjohnmurray) I can still reproduce your original issue when you are in a multi-root workspace where 1 folder is local and 1 is from the memory-fs provider, so maybe that explains the difference in testing outcome.
If there is just 1 memory-fs provided folder in the explorer, I can see that the fix seems to be working.
Can you test?