@@ -79,12 +79,12 @@ export function register(ctx: WorkspaceContext): vscode.Disposable[] {
79
79
vscode . commands . registerCommand ( "swift.cleanBuild" , ( ) => cleanBuild ( ctx ) ) ,
80
80
vscode . commands . registerCommand ( "swift.runTestsMultipleTimes" , item => {
81
81
if ( ctx . currentFolder ) {
82
- runTestMultipleTimes ( ctx . currentFolder , item , false ) ;
82
+ return runTestMultipleTimes ( ctx . currentFolder , item , false ) ;
83
83
}
84
84
} ) ,
85
85
vscode . commands . registerCommand ( "swift.runTestsUntilFailure" , item => {
86
86
if ( ctx . currentFolder ) {
87
- runTestMultipleTimes ( ctx . currentFolder , item , true ) ;
87
+ return runTestMultipleTimes ( ctx . currentFolder , item , true ) ;
88
88
}
89
89
} ) ,
90
90
// Note: This is only available on macOS (gated in `package.json`) because its the only OS that has the iOS SDK available.
@@ -93,7 +93,7 @@ export function register(ctx: WorkspaceContext): vscode.Disposable[] {
93
93
vscode . commands . registerCommand ( "swift.runScript" , ( ) => runSwiftScript ( ctx ) ) ,
94
94
vscode . commands . registerCommand ( "swift.openPackage" , ( ) => {
95
95
if ( ctx . currentFolder ) {
96
- openPackage ( ctx . toolchain . swiftVersion , ctx . currentFolder . folder ) ;
96
+ return openPackage ( ctx . toolchain . swiftVersion , ctx . currentFolder . folder ) ;
97
97
}
98
98
} ) ,
99
99
vscode . commands . registerCommand ( "swift.runSnippet" , ( ) => runSnippet ( ctx ) ) ,
@@ -108,27 +108,27 @@ export function register(ctx: WorkspaceContext): vscode.Disposable[] {
108
108
) ,
109
109
vscode . commands . registerCommand ( "swift.useLocalDependency" , item => {
110
110
if ( item instanceof PackageNode ) {
111
- useLocalDependency ( item . name , ctx ) ;
111
+ return useLocalDependency ( item . name , ctx ) ;
112
112
}
113
113
} ) ,
114
114
vscode . commands . registerCommand ( "swift.editDependency" , item => {
115
115
if ( item instanceof PackageNode ) {
116
- editDependency ( item . name , ctx ) ;
116
+ return editDependency ( item . name , ctx ) ;
117
117
}
118
118
} ) ,
119
119
vscode . commands . registerCommand ( "swift.uneditDependency" , item => {
120
120
if ( item instanceof PackageNode ) {
121
- uneditDependency ( item . name , ctx ) ;
121
+ return uneditDependency ( item . name , ctx ) ;
122
122
}
123
123
} ) ,
124
124
vscode . commands . registerCommand ( "swift.openInWorkspace" , item => {
125
125
if ( item instanceof PackageNode ) {
126
- openInWorkspace ( item ) ;
126
+ return openInWorkspace ( item ) ;
127
127
}
128
128
} ) ,
129
129
vscode . commands . registerCommand ( "swift.openExternal" , item => {
130
130
if ( item instanceof PackageNode ) {
131
- openInExternalEditor ( item ) ;
131
+ return openInExternalEditor ( item ) ;
132
132
}
133
133
} ) ,
134
134
vscode . commands . registerCommand ( "swift.attachDebugger" , ( ) => attachDebugger ( ctx ) ) ,
0 commit comments