Skip to content

Commit 8235755

Browse files
authored
Improve extension activation when subfolders are swift packages (#1635)
* Improve extension activation when subfolders are swift packages For cases that `swift.searchSubfoldersForPackages` is enabled Also add the "swift" debug resolve activation for new launch type Issue: #1634 * Add changelog entry
1 parent f4382d9 commit 8235755

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Do not show non-"swift" tasks in the project panel ([#1620](https://github.com/swiftlang/vscode-swift/pull/1620))
1313
- Make sure activation does not fail when `swift.path` is `null` ([#1616](https://github.com/swiftlang/vscode-swift/pull/1616))
1414
- Fix `Swift: Reset Package Dependencies` command on Windows ([#1614](https://github.com/swiftlang/vscode-swift/pull/1614))
15+
- Activate extension when a .swift source file exists in a subfolder ([#1635](https://github.com/swiftlang/vscode-swift/pull/1635))
1516

1617
## 2.4.0 - 2025-06-11
1718

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
],
2626
"activationEvents": [
2727
"onLanguage:swift",
28-
"workspaceContains:Package.swift",
29-
"workspaceContains:compile_commands.json",
30-
"workspaceContains:compile_flags.txt",
31-
"workspaceContains:buildServer.json",
32-
"onDebugResolve:swift-lldb"
28+
"workspaceContains:**/Package.swift",
29+
"workspaceContains:**/compile_commands.json",
30+
"workspaceContains:**/compile_flags.txt",
31+
"workspaceContains:**/buildServer.json",
32+
"onDebugResolve:swift-lldb",
33+
"onDebugResolve:swift"
3334
],
3435
"main": "./dist/src/extension.js",
3536
"contributes": {

0 commit comments

Comments
 (0)