Skip to content

Add EnableFileBasedProgramsWhenAmbiguous flag#81513

Merged
RikkiGibson merged 3 commits intodotnet:mainfrom
RikkiGibson:fbp-second-flag
Dec 3, 2025
Merged

Add EnableFileBasedProgramsWhenAmbiguous flag#81513
RikkiGibson merged 3 commits intodotnet:mainfrom
RikkiGibson:fbp-second-flag

Conversation

@RikkiGibson
Copy link
Member

@RikkiGibson RikkiGibson commented Dec 2, 2025

Per discussion with @DamianEdwards and @JakeRadMSFT.

This adds a second opt-out flag which controls the presence of semantic errors for files with top-level statements but no directives. See also https://github.com/dotnet/roslyn/blob/f9ed48741746ed1821d091192f78ff191af3680e/docs/features/file-based-programs-vscode.md#opt-out.

Client side change: dotnet/vscode-csharp#8823

@RikkiGibson RikkiGibson changed the title Add EnableFileBasedProgramsWithoutDirectives flag Add EnableFileBasedProgramsWhenAmbiguous flag Dec 3, 2025
@RikkiGibson RikkiGibson marked this pull request as ready for review December 3, 2025 04:30
@RikkiGibson RikkiGibson requested a review from a team as a code owner December 3, 2025 04:30
@RikkiGibson RikkiGibson removed the request for review from a team December 3, 2025 04:30
@RikkiGibson RikkiGibson enabled auto-merge (squash) December 3, 2025 04:30
…nc when option EnableFileBasedPrograms is disabled
@RikkiGibson RikkiGibson merged commit 6b6e4ad into dotnet:main Dec 3, 2025
25 of 26 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 3, 2025
@davidwengier davidwengier modified the milestones: Next, 18.3 Jan 6, 2026
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.

3 participants