swift.disableSwiftPMIntegration mentioned in CHANGELOG but not recognized in VS Code (2.16.1)
bug
According to the CHANGELOG, there is a setting `swift.disableSwiftPMIntegration`.
However in extension **2.16.1** this setting is not recognized by VS Code.
Adding it to `.vscode/settings.json`:
```json
{
"swift.disableSwiftPMIntegration": true
}
```
VS Code marks it as:
```
Unknown Configuration Setting
```
and it has no effect.
The extension still runs SwiftPM commands like:
```
swift package describe --type json
```
which fails when the workspace is not a Swift package:
```
error: Could not find Package.swift in this directory or any of its parent directories.
```
### Environment
* VS Code: 1.111.0
* Extension: swiftlang.swift-vscode 2.16.1
* macOS: 26.3.1
### Context
This happens when opening a non-Swift project (e.g. C++ / Objective-C++) that contains `compile_commands.json`.
The CHANGELOG mentions `swift.disableSwiftPMIntegration`, but the setting does not appear to exist in the released extension.
Is this setting supposed to be user-configurable, or is it an internal flag?
关闭于 2026-03-13 3 条评论