Skip to content

feat(BREAKING): rename editor.trustedDomains to editor.autoDownloadDomains and require *. for subdomains - #1498

Merged
dsherret merged 1 commit into
mainfrom
auto-download-domains
Dec 1, 2026
Merged

dsherret merged 1 commit into
mainfrom
auto-download-domains

Conversation

@dsherret

@dsherret dsherret commented Dec 1, 2026

Copy link
Copy Markdown
Member

Renames the editor.trustedDomains setting to editor.autoDownloadDomains, because it's the domains that editors download from without asking and is easily confused with DPRINT_ALLOWED_HOSTS.

  • editor.trustedDomains still works as an alias. When a settings file has both (ex. it's shared with an older version of dprint that doesn't know the new name), the domains of both are used.
  • Breaking change: Each domain now only matches that exact host, like in DPRINT_ALLOWED_HOSTS. Use *.example.com for the subdomains of a domain. This goes for both names of the setting, and editors ask about what no longer matches.
  • The default githubusercontent.com is now *.githubusercontent.com. The other default domains don't include their subdomains anymore.
  • * and a domain starting with a dot aren't valid, which is warned about.
  • The messages that ask to download say "domains that need approval" instead of "domains that aren't trusted".

@dsherret dsherret changed the title feat: rename editor.trustedDomains to editor.autoDownloadDomains and require *. for subdomains feat(BREAKING): rename editor.trustedDomains to editor.autoDownloadDomains and require *. for subdomains Dec 1, 2026
@dsherret
dsherret merged commit d5c28c7 into main Dec 1, 2026
6 checks passed
@dsherret
dsherret deleted the auto-download-domains branch December 1, 2026 00:07
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.

1 participant