Fix missing icons for role assignment scope nodes under User Assigned Identities#5020
Merged
Merged
Conversation
…s in esbuild Agent-Logs-Url: https://github.com/microsoft/vscode-azurefunctions/sessions/e495685a-3e31-46f4-b16a-e821a78dca59 Co-authored-by: nturinski <5290572+nturinski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing icon for User Assigned Identity node in Azure Functions extension
Fix missing icons for role assignment scope nodes under User Assigned Identities
May 13, 2026
nturinski
approved these changes
May 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes missing Azure resource-type icons at runtime by ensuring the @microsoft/vscode-azext-azureutils resources/azureIcons/ SVGs are copied into the built dist/ output where getAzureIconPath() expects them.
Changes:
- Extends the selected esbuild config to include an
esbuild-plugin-copystep. - Copies
@microsoft/vscode-azext-azureutils/resources/azureIcons/*.svgintodist/node_modules/@microsoft/vscode-azext-azureutils/resources/azureIconsduring builds.
bwateratmsft
approved these changes
May 20, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

RoleDefinitionsTreeItem(from@microsoft/vscode-azext-azureutils) resolves Azure resource icons viagetAzureIconPath(), which at runtime looks for files underdist/node_modules/@microsoft/vscode-azext-azureutils/resources/azureIcons/. The default esbuild config from@microsoft/vscode-azext-engonly copies root-level SVGs (resources/*.svg) — theazureIcons/subdirectory was never copied, so all resource-type icons (e.g.StorageAccounts.svg) were missing at runtime.Changes
esbuild.mjs: Extends the default build config to add anesbuild-plugin-copystep that copiesresources/azureIcons/*.svgfrom@microsoft/vscode-azext-azureutilsinto the correct path underdist/. The package is already a transitive dev dependency via@microsoft/vscode-azext-eng.