File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 15231523 "razor.languageServer.forceRuntimeCodeGeneration" : {
15241524 "type" : " boolean" ,
15251525 "scope" : " machine-overridable" ,
1526- "default" : null ,
1526+ "default" : true ,
15271527 "description" : " %configuration.razor.languageServer.forceRuntimeCodeGeneration%" ,
15281528 "order" : 90 ,
15291529 "tags" : [
Original file line number Diff line number Diff line change @@ -23,18 +23,7 @@ export function resolveRazorLanguageServerOptions(
2323 const usingOmniSharp =
2424 ! getCSharpDevKit ( ) && vscodeApi . workspace . getConfiguration ( ) . get < boolean > ( 'dotnet.server.useOmnisharp' ) ;
2525
26- const hotReload = vscodeApi . workspace . getConfiguration ( 'csharp.experimental.debug' ) . get < boolean > ( 'hotReload' ) ;
27-
28- let forceRuntimeCodeGeneration = serverConfig . get < boolean | null > ( 'forceRuntimeCodeGeneration' ) ;
29-
30- if ( forceRuntimeCodeGeneration === null && hotReload ) {
31- logger . logInfo (
32- 'Hot Reload is enabled so treating "razor.languageServer.forceRuntimeCodeGeneration" as true. To override this set "razor.languageServer.forceRuntimeCodeGeneration" to true or false.'
33- ) ;
34-
35- forceRuntimeCodeGeneration = hotReload ;
36- }
37-
26+ const forceRuntimeCodeGeneration = serverConfig . get < boolean > ( 'forceRuntimeCodeGeneration' ) ;
3827 const suppressErrorToasts = serverConfig . get < boolean > ( 'suppressLspErrorToasts' ) ;
3928 const useNewFormattingEngine = serverConfig . get < boolean > ( 'useNewFormattingEngine' ) ;
4029 const cohostingEnabled = serverConfig . get < boolean > ( 'cohostingEnabled' ) ;
You can’t perform that action at this time.
0 commit comments