@@ -12,7 +12,7 @@ import AdmZip from 'adm-zip'
1212import * as path from 'path'
1313import { fs } from '../../shared'
1414import { showConfirmationMessage , showViewLogsMessage } from '../../shared/utilities/messages'
15- import { cloud9Findfile , makeTemporaryToolkitFolder , tryRemoveFolder } from '../../shared/filesystemUtilities'
15+ import { makeTemporaryToolkitFolder , tryRemoveFolder } from '../../shared/filesystemUtilities'
1616import * as localizedText from '../../shared/localizedText'
1717import { getLogger } from '../../shared/logger'
1818import { SamCliBuildInvocation } from '../../shared/sam/cli/samCliBuild'
@@ -494,17 +494,15 @@ export async function findApplicationJsonFile(
494494 }
495495 const isdir = await fs . existsDir ( startPath . fsPath )
496496 const parentDir = isdir ? startPath . fsPath : path . dirname ( startPath . fsPath )
497- const found = cloud9
498- ? await cloud9Findfile ( parentDir , '.application.json' )
499- : await vscode . workspace . findFiles (
500- new vscode . RelativePattern ( parentDir , '**/.application.json' ) ,
501- // exclude:
502- // - null = NO excludes apply
503- // - undefined = default excludes apply (e.g. the `files.exclude` setting but not `search.exclude`).
504- // eslint-disable-next-line unicorn/no-null
505- null ,
506- 1
507- )
497+ const found = await vscode . workspace . findFiles (
498+ new vscode . RelativePattern ( parentDir , '**/.application.json' ) ,
499+ // exclude:
500+ // - null = NO excludes apply
501+ // - undefined = default excludes apply (e.g. the `files.exclude` setting but not `search.exclude`).
502+ // eslint-disable-next-line unicorn/no-null
503+ null ,
504+ 1
505+ )
508506 if ( ! found || found . length === 0 ) {
509507 getLogger ( ) . debug ( 'uploadLambda: .application.json not found in: "%s"' , parentDir )
510508 }
0 commit comments