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 1523
1523
"razor.languageServer.forceRuntimeCodeGeneration" : {
1524
1524
"type" : " boolean" ,
1525
1525
"scope" : " machine-overridable" ,
1526
- "default" : null ,
1526
+ "default" : true ,
1527
1527
"description" : " %configuration.razor.languageServer.forceRuntimeCodeGeneration%" ,
1528
1528
"order" : 90 ,
1529
1529
"tags" : [
Original file line number Diff line number Diff line change @@ -23,18 +23,7 @@ export function resolveRazorLanguageServerOptions(
23
23
const usingOmniSharp =
24
24
! getCSharpDevKit ( ) && vscodeApi . workspace . getConfiguration ( ) . get < boolean > ( 'dotnet.server.useOmnisharp' ) ;
25
25
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' ) ;
38
27
const suppressErrorToasts = serverConfig . get < boolean > ( 'suppressLspErrorToasts' ) ;
39
28
const useNewFormattingEngine = serverConfig . get < boolean > ( 'useNewFormattingEngine' ) ;
40
29
const cohostingEnabled = serverConfig . get < boolean > ( 'cohostingEnabled' ) ;
You can’t perform that action at this time.
0 commit comments