Visitar URL original
Database source archives in the workspace slow down VS Code search · Issue #1068 · github/vscode-codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260516130211/https://github.com/github/vscode-codeql/issues/1068
Skip to content

Database source archives in the workspace slow down VS Code search #1068

@adityasharad

Description

@adityasharad

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.

Metadata

Metadata

Assignees

Labels

VSCodebugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions