Skip to content

Settings links in Release Notes do nothing - #268455

Merged
alexr00 merged 3 commits into
mainfrom
alexr00/issue268443
Sep 30, 2025
Merged

Settings links in Release Notes do nothing#268455
alexr00 merged 3 commits into
mainfrom
alexr00/issue268443

Conversation

@alexr00

@alexr00 alexr00 commented Sep 26, 2025

Copy link
Copy Markdown
Member

Part of #268443

@alexr00
alexr00 requested a review from joaomoreno as a code owner September 26, 2025 10:40
Copilot AI review requested due to automatic review settings September 26, 2025 10:40
@alexr00
alexr00 enabled auto-merge (squash) September 26, 2025 10:40
@alexr00 alexr00 self-assigned this Sep 26, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes settings links in release notes by adding support for the code-setting protocol and enabling proper rendering of settings references.

  • Adds Schemas.codeSetting to allowed link protocols for security sanitization
  • Augments allowed HTML tags and attributes to support SVG icons in settings links
  • Adds comprehensive test coverage for settings link rendering functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
releaseNotesEditor.ts Updates markdown sanitizer to allow code-setting protocol and SVG elements for settings links
releaseNotesRenderer.test.ts Adds new test case with mock preferences service to verify settings rendering
Release_notes_renderer_Should_render_code_settings.0.snap Test snapshot showing expected HTML output for rendered settings links
Release_notes_renderer_Should_render_TOC.0.snap Updated snapshot with proper nav tag formatting

Comment thread src/vs/workbench/contrib/update/test/browser/releaseNotesRenderer.test.ts Outdated
getSetting: (id: string) => {
if (id === testSettingId) {
// Provide the minimal fields accessed by SimpleSettingRenderer
return <any>{

Copilot AI Sep 26, 2025

Copy link

Choose a reason for hiding this comment

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

Replace <any> cast with a proper type or interface that matches the expected return type for getSetting method.

Copilot uses AI. Check for mistakes.
@vs-code-engineering vs-code-engineering Bot added this to the September 2025 milestone Sep 26, 2025
alexr00 and others added 2 commits September 26, 2025 12:43
…rer.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
minhdient49-tech

This comment was marked as spam.

@minhdient49-tech

This comment was marked as spam.

@alexr00
alexr00 merged commit 0de9bec into main Sep 30, 2025
28 checks passed
@alexr00
alexr00 deleted the alexr00/issue268443 branch September 30, 2025 09:35
davidbinns754-beep

This comment was marked as spam.

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants