Skip to content

Commit 7f2497a

Browse files
committed
add buildMementoRootKey for build command
1 parent c65c76b commit 7f2497a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/core/src/shared/sam/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import { telemetry } from '../telemetry/telemetry'
2121
import { getSpawnEnv } from '../env/resolveEnv'
2222
import { getProjectRoot, getSamCliPathAndVersion, isDotnetRuntime } from './utils'
2323
import { getConfigFileUri, validateSamBuildConfig } from './config'
24-
import { syncMementoRootKey } from './sync'
2524
import { runInTerminal } from './processTerminal'
2625

26+
const buildMementoRootKey = 'samcli.build.params'
2727
export interface BuildParams {
2828
readonly template: TemplateItem
2929
readonly projectRoot: vscode.Uri
@@ -129,7 +129,7 @@ export class BuildWizard extends Wizard<BuildParams> {
129129
this.arg = arg
130130
if (this.arg === undefined) {
131131
// "Build" command was invoked on the command palette.
132-
this.form.template.bindPrompter(() => createTemplatePrompter(this.registry, syncMementoRootKey))
132+
this.form.template.bindPrompter(() => createTemplatePrompter(this.registry, buildMementoRootKey))
133133
this.form.projectRoot.setDefault(({ template }) => getProjectRoot(template))
134134
this.form.paramsSource.bindPrompter(async ({ projectRoot }) => {
135135
const existValidSamConfig: boolean | undefined = await validateSamBuildConfig(projectRoot)

packages/core/src/test/shared/sam/build.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ describe('SAM Build', () => {
499499
})
500500

501501
it('should abort when customer cancel build wizard', async () => {
502-
getTestWindow().onDidShowQuickPick((picker) => {
502+
getTestWindow().onDidShowQuickPick(async (picker) => {
503503
await picker.untilReady()
504-
picker.dispose())
505-
}
504+
picker.dispose()
505+
})
506506

507507
try {
508508
await runBuild(appNode)

0 commit comments

Comments
 (0)