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 @@ -37,7 +37,7 @@ internal class DefaultLanguageServerFeatureOptions : LanguageServerFeatureOption

public override bool DisableRazorLanguageServer => false;

public override bool ForceRuntimeCodeGeneration => false;
public override bool ForceRuntimeCodeGeneration => true;

public override bool UseNewFormattingEngine => true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public VisualStudioLanguageServerFeatureOptions(ILspEditorFeatureDetector lspEdi
_forceRuntimeCodeGeneration = new Lazy<bool>(() =>
{
var featureFlags = (IVsFeatureFlags)Package.GetGlobalService(typeof(SVsFeatureFlags));
var forceRuntimeCodeGeneration = featureFlags.IsFeatureEnabled(WellKnownFeatureFlagNames.ForceRuntimeCodeGeneration, defaultValue: false);
var forceRuntimeCodeGeneration = featureFlags.IsFeatureEnabled(WellKnownFeatureFlagNames.ForceRuntimeCodeGeneration, defaultValue: true);
return forceRuntimeCodeGeneration;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

[$RootKey$\FeatureFlags\Razor\LSP\ForceRuntimeCodeGeneration]
"Description"="Enable combined design time/runtime code generation for Razor files"
"Value"=dword:00000000
"Value"=dword:00000001
"Title"="Force use of runtime code generation for Razor (requires restart)"
"PreviewPaneChannels"="*"

Expand Down
Loading