diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LspEditorFeatureDetector.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LspEditorFeatureDetector.cs index 58ab93f0899..5a187313411 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LspEditorFeatureDetector.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LspEditorFeatureDetector.cs @@ -86,16 +86,7 @@ public bool IsLspEditorEnabled() #pragma warning restore VSTHRD108 // Assert thread affinity unconditionally } - var useLegacyEditorEnabled = _lazyLegacyEditorEnabled.GetValue(_disposeTokenSource.Token); - - if (useLegacyEditorEnabled) - { - _activityLog.LogInfo("Using legacy editor because the option was set to true"); - return false; - } - - _activityLog.LogInfo("LSP editor is enabled."); - return true; + return !_lazyLegacyEditorEnabled.GetValue(_disposeTokenSource.Token); } ///