Skip to content

Commit 4a53b4f

Browse files
committed
add dedicate root key for build and deploy recent response
1 parent 7f2497a commit 4a53b4f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import globals from '../extensionGlobals'
1919
import { TreeNode } from '../treeview/resourceTreeDataProvider'
2020
import { telemetry } from '../telemetry/telemetry'
2121
import { getSpawnEnv } from '../env/resolveEnv'
22-
import { getProjectRoot, getSamCliPathAndVersion, isDotnetRuntime } from './utils'
22+
import { getProjectRoot, getSamCliPathAndVersion, isDotnetRuntime, updateRecentResponse } from './utils'
2323
import { getConfigFileUri, validateSamBuildConfig } from './config'
2424
import { runInTerminal } from './processTerminal'
2525

@@ -217,6 +217,8 @@ export async function runBuild(arg?: TreeNode): Promise<SamBuildResult> {
217217
const templatePath = params.template.uri.fsPath
218218
buildFlags.push('--template', `${templatePath}`)
219219

220+
await updateRecentResponse(buildMementoRootKey, 'global', 'templatePath', templatePath)
221+
220222
try {
221223
const { path: samCliPath } = await getSamCliPathAndVersion()
222224

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ export async function runDeploy(arg: any, wizardParams?: DeployParams): Promise<
306306
paramsToSet.length > 0 && deployFlags.push('--parameter-overrides', paramsToSet.join(' '))
307307
}
308308

309+
await updateRecentResponse(deployMementoRootKey, 'global', 'templatePath', params.template.uri.fsPath)
310+
309311
try {
310312
const { path: samCliPath } = await getSamCliPathAndVersion()
311313

0 commit comments

Comments
 (0)