File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ import { telemetry } from '../telemetry/telemetry'
2121import { getSpawnEnv } from '../env/resolveEnv'
2222import { getProjectRoot , getSamCliPathAndVersion , isDotnetRuntime } from './utils'
2323import { getConfigFileUri , validateSamBuildConfig } from './config'
24- import { syncMementoRootKey } from './sync'
2524import { runInTerminal } from './processTerminal'
2625
26+ const buildMementoRootKey = 'samcli.build.params'
2727export 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments