Skip to content

Project fully re-indexes on each open #2138

Open
@MihaelIsaev

Description

@MihaelIsaev

Describe the bug
If I close a project and open it again, the extension starts indexing from scratch every time.
This is especially painful with large projects, like a Vapor project on an M1 Pro — indexing takes time and consumes significant CPU and battery.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Vapor project.
  2. Wait for indexing to complete.
  3. Close the project.
  4. Reopen it and observe that indexing starts from scratch again.

Expected behavior
The extension shouldn't re-index the entire project every time it's opened. It would be great if it used some form of index caching.

Environment

  • OS: Ubuntu 24.04
  • Swift version (output of swift --version):
Swift version 6.1 (swift-6.1-RELEASE)
Target: aarch64-unknown-linux-gnu
  • Visual Studio Code version: Version: 1.99.3
  • vscode-swift version: 2.2.0

Additional info
Working inside VSCode devcontainer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions