Skip to content

Commit 33b2a1c

Browse files
authored
Merge branch 'main' into nat/managedIdentityBasic
2 parents 173b4b5 + 3662838 commit 33b2a1c

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 1.16.3 - 2025-03-10
4+
5+
### Changed
6+
* [[4397](https://github.com/microsoft/vscode-azurefunctions/pull/4397)] Automatically collect subscription and resource information for telemetry. [How to disable telemetry reporting](https://code.visualstudio.com/docs/supporting/FAQ#_how-to-disable-telemetry-reporting)
7+
* [[4400](https://github.com/microsoft/vscode-azurefunctions/pull/4400)] Require VS Code version 1.95.0 (October 2024) or greater
8+
39
## 1.16.2 - 2025-02-10
410

511
### Added

package-lock.json

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "vscode-azurefunctions",
33
"displayName": "Azure Functions",
44
"description": "%azureFunctions.description%",
5-
"version": "1.16.2",
5+
"version": "1.16.4-alpha",
66
"publisher": "ms-azuretools",
77
"icon": "resources/azure-functions.png",
88
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
99
"engines": {
10-
"vscode": "^1.82.0"
10+
"vscode": "^1.95.0"
1111
},
1212
"repository": {
1313
"type": "git",
@@ -1305,7 +1305,7 @@
13051305
"@types/node": "^16.18.36",
13061306
"@types/ps-tree": "^1.1.0",
13071307
"@types/semver": "^5.5.0",
1308-
"@types/vscode": "^1.81.0",
1308+
"@types/vscode": "^1.95.0",
13091309
"@types/websocket": "^1.0.0",
13101310
"@types/xml2js": "^0.4.5",
13111311
"@types/xregexp": "4.3.0",
@@ -1348,7 +1348,7 @@
13481348
"@microsoft/vscode-azext-azureappsettings": "^0.2.2",
13491349
"@microsoft/vscode-azext-azureutils": "^3.1.5",
13501350
"@microsoft/vscode-azext-serviceconnector": "^0.1.3",
1351-
"@microsoft/vscode-azext-utils": "^2.5.7",
1351+
"@microsoft/vscode-azext-utils": "^2.6.3",
13521352
"@microsoft/vscode-azureresources-api": "^2.0.4",
13531353
"cross-fetch": "^4.0.0",
13541354
"escape-string-regexp": "^4.0.0",

src/How to parse v2 Templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Bundle feed
44

5-
The templates come from the extension [bundle feed](https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index-v2.json) under the `templates.v2` property.
5+
The templates come from the extension [bundle feed](https://cdn.functions.azure.com/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index-v2.json) under the `templates.v2` property.
66
The extension looks at the `bundleVersions` to determine what the latest version is. It then uses the three properties `functions`, `userPrompts`, and `resources` to retrieve the jsons used to parse the templates.
77

88
**NOTE: For v1, we use `bindings` instead of `userPrompts`**

src/commands/SubscriptionListStep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class SubscriptionListStep extends AzureWizardPromptStep<IFuncDeployConte
1414
private _oneSubscription: boolean = false;
1515
public async prompt(context: IFuncDeployContext): Promise<void> {
1616
context.subscription = (await context.ui.showQuickPick(this._picks, { placeHolder: l10n.t("Select a subscription") })).data;
17+
context.telemetry.properties.subscriptionId = context.subscription.subscriptionId;
1718
}
1819

1920
public shouldPrompt(_: IFuncDeployContext): boolean {

src/commands/deploy/FunctionAppListStep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { type IFuncDeployContext } from "./deploy";
1717
export class FunctionAppListStep extends AzureWizardPromptStep<IFuncDeployContext> {
1818
public async prompt(context: IFuncDeployContext): Promise<void> {
1919
context.site = (await context.ui.showQuickPick(this.getPicks(context), { placeHolder: vscode.l10n.t("Select a function app") })).data;
20+
context.telemetry.properties.resourceId = context.site?.id;
2021
}
2122

2223
public shouldPrompt(context: IFuncDeployContext): boolean {

src/templates/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Azure Function Templates
22

3-
The code in this folder is used to parse and model the [function templates](https://github.com/Azure/azure-webjobs-sdk-templates) provided by the [Azure Functions CLI Feed](https://aka.ms/AAbbk68). The Functions CLI Feed provides a central location to get the latest version of all templates used for functions.
3+
The code in this folder is used to parse and model the [function templates](https://github.com/Azure/azure-webjobs-sdk-templates) provided by the [Azure Functions CLI Feed](https://aka.ms/funcCliFeedV4). The Functions CLI Feed provides a central location to get the latest version of all templates used for functions.
44

55
## Template Sources
66

@@ -24,9 +24,9 @@ Backup templates should be updated every time there is a major change in the lat
2424
2525
## Script Templates
2626

27-
Basic script templates (i.e. http and timer) are retrieved from the 'templates' property in each entry of the [CLI Feed](https://aka.ms/AAbbk68). More advanced templates (i.e. blob and cosmos) are retrieved from another feed specific to the extension bundle for that project. For example, the default bundle is 'Microsoft.Azure.Functions.ExtensionBundle' and the matching feed is https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index-v2.json
27+
Basic script templates (i.e. http and timer) are retrieved from the 'templates' property in each entry of the [CLI Feed](https://aka.ms/funcCliFeedV4). More advanced templates (i.e. blob and cosmos) are retrieved from another feed specific to the extension bundle for that project. For example, the default bundle is 'Microsoft.Azure.Functions.ExtensionBundle' and the matching feed is https://cdn.functions.azure.com/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index-v2.json
2828

29-
> NOTE: Both template feeds support 'staging' environments for us to test against before moving to production. The main CLI Feed uses a "vX-prerelease" tag, while the bundle feed has a completely different url leveraging "functionscdnstaging" instead of "functionscdn".
29+
> NOTE: Both template feeds support 'staging' environments for us to test against before moving to production. The main CLI Feed uses a "vX-prerelease" tag, while the bundle feed has a completely different url leveraging "cdn-staging.functions.azure.com" instead of "cdn.functions.azure.com ".
3030
3131
In both cases, the templates are split into three parts: templates.json, bindings.json, and resources.json. See below for an example of the schema for the TimerTrigger template:
3232

src/utils/bundleFeedUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export namespace bundleFeedUtils {
6868

6969
export async function getReleaseV2(templateVersion: string): Promise<ITemplatesReleaseV2> {
7070
// build the url ourselves because the index-v2.json file is no longer publishing version updates for v2 templates
71-
const functionsCdn: string = 'https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/';
71+
const functionsCdn: string = 'https://cdn.functions.azure.com/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/';
7272
return {
7373
functions: `${functionsCdn}${templateVersion}/StaticContent/v2/templates/templates.json`,
7474
bindings: `${functionsCdn}${templateVersion}/StaticContent/v2/bindings/userPrompts.json`,
@@ -113,10 +113,10 @@ export namespace bundleFeedUtils {
113113
let url: string;
114114
const templateProvider = ext.templateProvider.get(context);
115115
if (!envVarUri && bundleId === defaultBundleId && templateProvider.templateSource !== TemplateSource.Staging) {
116-
url = 'https://aka.ms/AA66i2x';
116+
url = 'https://aka.ms/bundleFeedUtilsV2';
117117
} else {
118-
const suffix: string = templateProvider.templateSource === TemplateSource.Staging ? 'staging' : '';
119-
const baseUrl: string = envVarUri || `https://functionscdn${suffix}.azureedge.net/public`;
118+
const suffix: string = templateProvider.templateSource === TemplateSource.Staging ? '-staging' : '';
119+
const baseUrl: string = envVarUri || `https://cdn${suffix}.functions.azure.com/public`;
120120
url = `${baseUrl}/ExtensionBundles/${bundleId}/index-v2.json`;
121121
}
122122

src/utils/cliFeedUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { localize } from '../localize';
1111
import { feedUtils } from './feedUtils';
1212

1313
export namespace cliFeedUtils {
14-
const funcCliFeedV4Url: string = 'https://aka.ms/AAbbk68';
14+
const funcCliFeedV4Url: string = 'https://aka.ms/funcCliFeedV4';
1515

1616
interface ICliFeed {
1717
tags: {

src/utils/treeUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as path from 'path';
88
import { ext } from '../extensionVariables';
99

1010
export namespace treeUtils {
11-
export function getIconPath(iconName: string): TreeItemIconPath {
11+
export function getIconPath(iconName: string): string {
1212
return path.join(getResourcesPath(), `${iconName}.svg`);
1313
}
1414

0 commit comments

Comments
 (0)