Skip to content

utils: Fix commands that are run on non-subscription related AzExtTreeItem's#1918

Merged
alexweininger merged 3 commits intomainfrom
alex/moccasin-ocelot
Mar 7, 2025
Merged

utils: Fix commands that are run on non-subscription related AzExtTreeItem's#1918
alexweininger merged 3 commits intomainfrom
alex/moccasin-ocelot

Conversation

@alexweininger
Copy link
Copy Markdown
Member

Accessing the subscription property on AzExtTreeItems throws if the items don't have subscriptions. Which happens for tree items in the Help & Feedback view, and in a few other places. The fix is to add try/catches around any place where this property is accessed for telemetry's sake. It's not pretty but it's what we have to do.

Related issues: microsoft/vscode-azureresourcegroups#1080, microsoft/vscode-azureresourcegroups#1081, and microsoft/vscode-azurefunctions#4402

@alexweininger alexweininger requested a review from a team as a code owner March 7, 2025 20:31
@alexweininger alexweininger merged commit 9a02cdb into main Mar 7, 2025
4 checks passed
@alexweininger alexweininger deleted the alex/moccasin-ocelot branch March 7, 2025 21:06
alexweininger added a commit to microsoft/vscode-azurestorage that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azureappservice that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurestaticwebapps that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurecontainerapps that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurevirtualmachines that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurevirtualmachines that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurecontainerapps that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurestaticwebapps that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azurestorage that referenced this pull request Mar 7, 2025
alexweininger added a commit to microsoft/vscode-azureappservice that referenced this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants