You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the behavior (in an empty directory):
mkdir first && cd first && swift package init --type executable
cd ..
mkdir second && cd second && swift package init --type executable
cd ..
code .
In other words, create a project structure like this, then open it in VS Code:
.
├── first
│ ├── Package.swift
│ └── Sources
│ └── main.swift
└── second
├── Package.swift
└── Sources
└── main.swift
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
macOS 13.6
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-22-a
Visual Studio Code version: 1.88.1
vscode-swift version: 1.9.0
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: