Open
Description
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:
- Open a Vapor project.
- Wait for indexing to complete.
- Close the project.
- 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.