Skip to content

Conversation

@lukewduncan
Copy link

@lukewduncan lukewduncan commented Aug 21, 2025

The Terraform extension was causing Content Security Policy violations in the browser console with errors like:

Refused to load the font 'extension-file://hashicorp.terraform/extension/assets/icons/running.woff' because it violates the following Content Security Policy directive....

The HashiCorp Terraform extension puts custom icons in its package.json manifest:

  • contributes.icons

The rollup-vsix-plugin has a bug that fails to detect and bundle these icon paths properly.

Need to filter out icon-related fields from extension manifests:

  • icons (under contributes)

@lukewduncan lukewduncan requested a review from CGNonofr August 21, 2025 03:47
@lukewduncan lukewduncan force-pushed the fix-extension-icon-csp-violations branch from f4ff978 to 9ded1ee Compare August 21, 2025 03:58
Copy link
Contributor

@CGNonofr CGNonofr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@CGNonofr CGNonofr merged commit 6ac8134 into main Aug 21, 2025
2 checks passed
@CGNonofr CGNonofr deleted the fix-extension-icon-csp-violations branch August 21, 2025 07:56
@github-actions
Copy link

🎉 This PR is included in version 18.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants