@@ -12,7 +12,7 @@ import AdmZip from 'adm-zip'
12
12
import * as path from 'path'
13
13
import { fs } from '../../shared'
14
14
import { showConfirmationMessage , showViewLogsMessage } from '../../shared/utilities/messages'
15
- import { cloud9Findfile , makeTemporaryToolkitFolder , tryRemoveFolder } from '../../shared/filesystemUtilities'
15
+ import { makeTemporaryToolkitFolder , tryRemoveFolder } from '../../shared/filesystemUtilities'
16
16
import * as localizedText from '../../shared/localizedText'
17
17
import { getLogger } from '../../shared/logger'
18
18
import { SamCliBuildInvocation } from '../../shared/sam/cli/samCliBuild'
@@ -494,17 +494,15 @@ export async function findApplicationJsonFile(
494
494
}
495
495
const isdir = await fs . existsDir ( startPath . fsPath )
496
496
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
+ )
508
506
if ( ! found || found . length === 0 ) {
509
507
getLogger ( ) . debug ( 'uploadLambda: .application.json not found in: "%s"' , parentDir )
510
508
}
0 commit comments