Skip to content

Don't count empty script extensions as potential script files - #80068

Merged
davidwengier merged 6 commits into
dotnet:mainfrom
davidwengier:FixRazorOnLeftSideOfDiff
Aug 28, 2025
Merged

davidwengier merged 6 commits into
dotnet:mainfrom
davidwengier:FixRazorOnLeftSideOfDiff

Conversation

@davidwengier

@davidwengier davidwengier commented Aug 28, 2025 •

Copy link
Copy Markdown
Member

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
@RikkiGibson

Copy link
Copy Markdown
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