Skip to content

Conversation

@filzrev
Copy link
Contributor

@filzrev filzrev commented Oct 21, 2025

This PR intended to fix issue reported by #10850.

What's changed in this PR
Modify TryGetFileDetail to return null when input file path contains /obj/ path.

It seems Roslyn API don't expose public function to get flag that current SyntaxNode is generated from Source Generator or not.
So this PR simply checking path has /obj/ or not.

Other Changes
Update snapshot files with snapshot.yml workflow.
This PR affects existing page contents that are generated by outputFormat: markdown.
And invalid Edit this page links are removed.

Background
Mref/ApiPage link is resolved when running docfx metadata command.

In contrast, Markdown output format generate plain markdown on docfx metadata command.
And Edit this page link is resolved on docfx build command based on markdown file path.
So current existing markdown pages contains invalid links that can't accessible.

Example URLs

@yufeih yufeih added the bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note label Oct 21, 2025
@filzrev
Copy link
Contributor Author

filzrev commented Oct 21, 2025

Current snapshot test don't contains files that are created by Source Generator.
So it can't detect regression on existing tests.

I'll expecting to add required test files on another PR after this PR merged.

@yufeih yufeih enabled auto-merge (squash) October 24, 2025 05:47
@yufeih yufeih merged commit 62c26f7 into dotnet:main Oct 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants