Skip to content

Commit 62634bb

Browse files
committed
Fix SwiftPM's dropdown showing on projects disabling the SwiftPM integration
1 parent 6e1a95d commit 62634bb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/SwiftPackage.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,9 @@ export class SwiftPackage {
262262
toolchain: SwiftToolchain,
263263
disableSwiftPMIntegration: boolean = false
264264
): Promise<SwiftPackageState> {
265-
// When SwiftPM integration is disabled, return empty package structure
265+
// When SwiftPM integration is disabled, return undefined to disable all features
266266
if (disableSwiftPMIntegration) {
267-
return {
268-
name: path.basename(folder.fsPath),
269-
products: [],
270-
dependencies: [],
271-
targets: [],
272-
};
267+
return undefined;
273268
}
274269

275270
try {

0 commit comments

Comments
 (0)