File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ export class SwiftPackage {
275275 dependencies : [ ] ,
276276 targets : [ ] ,
277277 } ) ;
278+ return ;
278279 }
279280
280281 try {
Original file line number Diff line number Diff line change @@ -166,9 +166,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api> {
166166 const subscriptionsElapsed = Date . now ( ) - subscriptionsStartTime ;
167167
168168 // setup workspace context with initial workspace folders
169- // const workspaceFoldersStartTime = Date.now();
170169 void workspaceContext . addWorkspaceFolders ( ) ;
171- // const workspaceFoldersElapsed = Date.now() - workspaceFoldersStartTime;
172170
173171 const finalStepsStartTime = Date . now ( ) ;
174172 // Mark the extension as activated.
Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ export function checkIfBuildComplete(line: string): boolean {
7474export function packageName ( folderContext : FolderContext ) : string | undefined {
7575 if ( vscode . workspace . workspaceFile ) {
7676 return folderContext . name ;
77- } else if ( folderContext . relativePath . length > 0 ) {
77+ } else if ( folderContext . relativePath && folderContext . relativePath . length > 0 ) {
7878 return folderContext . relativePath ;
79+ } else {
80+ return folderContext . name ;
7981 }
8082}
8183
You can’t perform that action at this time.
0 commit comments