Describe the bug
Multiple internal users report that:
- having at least one database open in the workspace makes VS Code's built-in search unusably slow, and
- removing the database or its source archive from the workspace fixes the search speed.
Expected behavior
Users should be able to add as many CodeQL databases as they wish to their workspace without affecting the search function.
Additional context
Related: #1065
Tentative diagnosis: we add database source archive folders as workspace folders, which means VS Code's search will attempt to search within these folders. These may contain a large number of files, degrading search performance.
Possible solution: When adding a source archive folder to the workspace, modify the workspace folder settings for that specific folder, and exclude it from VS Code search. See the update method in WorkspaceConfiguration.
This will mean users cannot search within the source archive (except by running a query or using the AST viewer), but arguably that is not a feature we want to support anyway.
Describe the bug
Multiple internal users report that:
Expected behavior
Users should be able to add as many CodeQL databases as they wish to their workspace without affecting the search function.
Additional context
Related: #1065
Tentative diagnosis: we add database source archive folders as workspace folders, which means VS Code's search will attempt to search within these folders. These may contain a large number of files, degrading search performance.
Possible solution: When adding a source archive folder to the workspace, modify the workspace folder settings for that specific folder, and exclude it from VS Code search. See the
updatemethod in WorkspaceConfiguration.This will mean users cannot search within the source archive (except by running a query or using the AST viewer), but arguably that is not a feature we want to support anyway.