Skip to content

Use case insensitive file uri compare in md extension - #300629

Merged
Matt Bierner (mjbvz) merged 2 commits into
microsoft:mainfrom
mjbvz:dev/mjbvz/xenogeneic-silverfish
Mar 11, 2026
Merged

Matt Bierner (mjbvz) merged 2 commits into
microsoft:mainfrom
mjbvz:dev/mjbvz/xenogeneic-silverfish

Conversation

@mjbvz

Copy link
Copy Markdown
Contributor

For #265277

@mjbvz Matt Bierner (mjbvz) self-assigned this Mar 11, 2026
Copilot AI review requested due to automatic review settings March 11, 2026 02:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.112.0 milestone Mar 11, 2026

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

This PR updates the Markdown preview’s resource identity checks to be case-insensitive for file URIs, addressing a Windows scenario where overwriting a markdown file can leave the preview stuck showing stale content (#265277).

Changes:

  • Added a shared URI equality helper (areUrisEqual) in the markdown extension utilities.
  • Updated preview versioning and isPreviewOf checks to use the helper instead of direct fsPath comparisons.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
extensions/markdown-language-features/src/util/resources.ts Introduces areUrisEqual for comparing URIs (including a case-insensitive file path comparison).
extensions/markdown-language-features/src/preview/preview.ts Uses areUrisEqual when determining whether a preview matches a resource and whether the version changed.

@mjbvz
Matt Bierner (mjbvz) merged commit 6597286 into microsoft:main Mar 11, 2026
18 checks passed
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Apr 25, 2026
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.

3 participants