Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ internal static class RazorCohostingOptions
/// <summary>
/// True if razor is running in the cohosting mode
/// </summary>
internal static bool UseRazorCohostServer { get; set; } = true;
internal static bool UseRazorCohostServer { get; set; } = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.Language.Syntax;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Test.Utilities;
Expand Down Expand Up @@ -2623,9 +2622,6 @@ public async Task SourceGenerator_DoesNotUpdateSources_WhenSourceGeneratorIsSupp
// start with the generator suppressed (this is the default state in VS)
driver = SetSuppressionState(true);

// Disable co-hosting, this test only applies to non-cohosting scenarios
RazorCohostingOptions.UseRazorCohostServer = false;

// results should be empty, and no recorded steps should have run
using var eventListener = new RazorEventListener();
var result = RunGenerator(compilation!, ref driver).VerifyPageOutput();
Expand Down Expand Up @@ -3468,7 +3464,6 @@ public async Task UseRazorCohostServer_CanOverride_Suppression()
["Component.Razor"] = "<h1>Hello world</h1>",
});
var compilation = await project.GetCompilationAsync();
RazorCohostingOptions.UseRazorCohostServer = false;

// Start with the generator suppressed
var (driver, additionalTexts, optionsProvider) = await GetDriverWithAdditionalTextAndProviderAsync(project, configureGlobalOptions: (o) =>
Expand Down