Open svanimpe opened 2 months ago
This seems to be a general issue with Swift packages in a subfolder, not just folders that contain multiple packages. I also have this issue in directories that contain, for example, one Swift package, and one NPM project.
@svanimpe I think this is another sourcekit-lsp issue. It looks like it has been around for a while, but without the underlined import
Thanks Adam!
@svanimpe just curious, does it work if you setup a multi-root workspace (https://code.visualstudio.com/docs/editor/workspaces#_multiroot-workspaces) which contains the various folders?
To Reproduce
Steps to reproduce the behavior (in an empty directory):
In other words, create a project structure like this, then open it in VS Code:
Issues
Open a Package.swift file. When using Swift 5.9, features such as autocompletion don't work in this file. With Swift 6.0, I get the following additional error:
Workaround
Open first or second separately in VS Code. Everything works fine then.
Environment