Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Aug 28, 2025

Part of fixing dotnet/vscode-csharp#8595 along with dotnet/razor#12155

Razor, Xaml and TypeScript set ScriptExtension to an empty string, because there is no scripting support. Weird uris from the left side of a diff end up getting a file extension that is an empty string, and hence errors abound.

@davidwengier davidwengier requested a review from a team as a code owner August 28, 2025 03:38
@davidwengier davidwengier changed the title Don't try to compute anything without a base directory Don't count empty script extensions as potential script files Aug 28, 2025
@davidwengier davidwengier requested a review from dibarbet August 28, 2025 21:50
@davidwengier davidwengier enabled auto-merge August 28, 2025 23:06
@davidwengier davidwengier merged commit 5f81927 into dotnet:main Aug 28, 2025
24 of 25 checks passed
@davidwengier davidwengier deleted the FixRazorOnLeftSideOfDiff branch August 28, 2025 23:19
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 28, 2025
@RikkiGibson
Copy link
Member

I am wondering if this change also fixes this bug: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2548062

@akhera99 akhera99 modified the milestones: Next, 18.0 P1, 18.0 P2 Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants