@@ -269,6 +269,8 @@ export class SwiftPackage {
269269 dependencies : [ ] ,
270270 targets : [ ] ,
271271 } ;
272+ // eslint-disable-next-line no-console
273+ console . log ( ">>> " , folderContext . folder . fsPath , ">>> DISABLED, EMPTY: " , empty ) ;
272274 this . contentsResolve ( empty ) ;
273275 return empty ;
274276 }
@@ -285,19 +287,37 @@ export class SwiftPackage {
285287 } ;
286288
287289 this . contentsResolve ( packageState ) ;
290+ // eslint-disable-next-line no-console
291+ console . log ( ">>> " , folderContext . folder . fsPath , ">>> SUCCESS: " , packageState ) ;
288292 return packageState ;
289293 } catch ( error : unknown ) {
294+ // eslint-disable-next-line no-console
295+ console . log ( ">>> " , folderContext . folder . fsPath , ">>> ERROR: " , error ) ;
290296 const errorMessage = error instanceof Error ? error . message : String ( error ) ;
291297 // if caught error and it begins with "error: root manifest" then there is no Package.swift
292298 if (
293299 errorMessage . startsWith ( "error: root manifest" ) ||
294300 errorMessage . startsWith ( "error: Could not find Package.swift" )
295301 ) {
302+ // eslint-disable-next-line no-console
303+ console . log (
304+ ">>> " ,
305+ folderContext . folder . fsPath ,
306+ ">>> RESOLVE, UNDEFINED: " ,
307+ undefined
308+ ) ;
296309 this . contentsResolve ( undefined ) ;
297310 return undefined ;
298311 } else {
299312 // otherwise it is an error loading the Package.swift so return `null` indicating
300313 // we have a package but we failed to load it. Calling resolve instead of reject is intent
314+ // eslint-disable-next-line no-console
315+ console . log (
316+ ">>> " ,
317+ folderContext . folder . fsPath ,
318+ ">>> RESOLVE, ERROR: " ,
319+ Error ( getErrorDescription ( error ) )
320+ ) ;
301321 this . contentsResolve ( Error ( getErrorDescription ( error ) ) ) ;
302322 return Error ( getErrorDescription ( error ) ) ;
303323 }
0 commit comments