Skip to content

Commit

Permalink
Bump appservice and azureutils (#2610)
Browse files Browse the repository at this point in the history
* Bump appservice and azureutils

* Add activity context
  • Loading branch information
alexweininger authored Jan 29, 2024
1 parent 7c4a9cf commit 141bd58
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -810,9 +810,9 @@
"@azure/arm-resources": "^5.0.0",
"@azure/core-client": "^1.7.3",
"@azure/core-rest-pipeline": "^1.11.0",
"@microsoft/vscode-azext-azureappservice": "^2.2.7",
"@microsoft/vscode-azext-azureappservice": "^2.3.1",
"@microsoft/vscode-azext-azureappsettings": "^0.2.0",
"@microsoft/vscode-azext-azureutils": "^2.0.2",
"@microsoft/vscode-azext-azureutils": "^2.0.5",
"@microsoft/vscode-azext-utils": "^2.1.1",
"@microsoft/vscode-azureresources-api": "^2.1.0",
"dotenv": "^6.2.0",
Expand Down
6 changes: 5 additions & 1 deletion src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ext } from '../../extensionVariables';
import { localize } from '../../localize';
import { ResolvedWebAppResource } from '../../tree/ResolvedWebAppResource';
import { type SiteTreeItem } from '../../tree/SiteTreeItem';
import { createActivityContext } from '../../utils/activityUtils';
import { javaUtils } from '../../utils/javaUtils';
import { nonNullValue } from '../../utils/nonNull';
import { isPathEqual } from '../../utils/pathUtils';
Expand Down Expand Up @@ -111,7 +112,10 @@ export async function deploy(actionContext: IActionContext, arg1?: vscode.Uri |

await node.runWithTemporaryDescription(context, localize('deploying', "Deploying..."), async () => {
try {
await appservice.deploy(nonNullValue(node).site, <string>deployPath, context);
await appservice.deploy(nonNullValue(node).site, <string>deployPath, {
...context,
...(await createActivityContext())
});
} catch (error) {
if (!actionContext.errorHandling.suppressDisplay
&& failureMoreInfoSurvey(parseError(error), nonNullValue(siteConfig))) {
Expand Down

0 comments on commit 141bd58

Please sign in to comment.