Skip to content

Commit 77a272e

Browse files
authored
Stop spamming the activity log (#11935)
We shouldn't be doing this: ![image](https://github.com/user-attachments/assets/ddfe0f41-4383-466d-a1bb-7fc133e0749c)
2 parents 6acba03 + 899b7bf commit 77a272e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LspEditorFeatureDetector.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,7 @@ public bool IsLspEditorEnabled()
8686
#pragma warning restore VSTHRD108 // Assert thread affinity unconditionally
8787
}
8888

89-
var useLegacyEditorEnabled = _lazyLegacyEditorEnabled.GetValue(_disposeTokenSource.Token);
90-
91-
if (useLegacyEditorEnabled)
92-
{
93-
_activityLog.LogInfo("Using legacy editor because the option was set to true");
94-
return false;
95-
}
96-
97-
_activityLog.LogInfo("LSP editor is enabled.");
98-
return true;
89+
return !_lazyLegacyEditorEnabled.GetValue(_disposeTokenSource.Token);
9990
}
10091

10192
/// <inheritdoc/>

0 commit comments

Comments
 (0)