Skip to content

Extension takes longer to initialize on recent versions, Package.swift is resolved from parent folders #1925

@rockbruno

Description

@rockbruno

I noticed that after bumping from 2.0.2 to the newest 2.12.0 that the extension takes much longer to initialize than it used to, and I think it seems to have something to do with the Package.swift searching logic.

In this screenshot here the workspace doesn't have a Package.swift file, but still the extension parsed and provided info about a SPM project. This project is actually the parent folder, which is not included in the workspace. I believe this wasn't the case in the older builds and there doesn't seem to be an option to disable this behavior (you can disable looking into the child folders but apparently not the parents). This SPM project is opened on another Cursor window though, if that is a factor.

Image

The project in question in https://github.com/spotify/sourcekit-bazel-bsp/tree/main/Example if you want to try it!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

Status

Unscreened

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions