Skip to content

Commit 397cd60

Browse files
committed
disable codelens to remove cfn scanner
1 parent 3b51e83 commit 397cd60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/core/src/test/awsService/appBuilder/walkthrough.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,14 @@ describe('AppBuilder Walkthrough', function () {
224224
})
225225

226226
it('download serverlessland proj', async function () {
227+
const config = vscode.workspace.getConfiguration('aws.samcli')
228+
await config.update('enableCodeLenses', false, vscode.ConfigurationTarget.Global)
227229
// When
228-
const genPromise = genWalkthroughProject('API', workspaceUri, 'python')
229-
await getTestWindow().waitForMessage(/template.yaml already exist/)
230-
await genPromise
230+
await genWalkthroughProject('API', workspaceUri, 'python')
231231
// Then template should be overwritten
232232
assert.equal(await fs.exists(vscode.Uri.joinPath(workspaceUri, 'template.yaml')), true)
233233
assert.notEqual(await fs.readFileText(vscode.Uri.joinPath(workspaceUri, 'template.yaml')), prevInfo)
234+
await config.update('enableCodeLenses', true, vscode.ConfigurationTarget.Global)
234235
})
235236
})
236237

0 commit comments

Comments
 (0)