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
workspaceContains starts a search over full workspace, including .git/, node_modules/ #34487
I will not push any change that changes the semantics. But I agree, if an extension has multiple glob patterns, we can invoke DiskSearch.search at most once per extension.
Activity
roblourens commentedon Sep 15, 2017
Also, we could batch workspaceContains searches into a single search. For example the C# extension will spawn 6 ripgrep processes.
jrieken commentedon Sep 18, 2017
So, how do you then active on
.git/HEAD?roblourens commentedon Sep 18, 2017
Maybe add some smartness to search .git/ or node_modules/ if it's explicitly mentioned in the
workspaceContains:search glob?alexdima commentedon Sep 20, 2017
I will not push any change that changes the semantics. But I agree, if an extension has multiple glob patterns, we can invoke
DiskSearch.searchat most once per extension.roblourens commentedon Sep 20, 2017
Thanks, that should help. Opening #34711 to track other strategies
roblourens commentedon Sep 20, 2017
Now I see it spawning some rg processes with no glob args at all. I think there might be a bug. Debugging...
alexdima commentedon Sep 21, 2017
roblourens Nice catch! Yes, it can happen if an extension uses strict file names and no glob patterns
Do not search for empty glob patterns (#34487)