Skip to content

Commit 3a3e25d

Browse files
Merge pull request #8233 from ryanbrandenburg/OutputWindowScope
Don't NotImplemented in OutputwindowLogger
2 parents d01b2dd + 7a575c4 commit 3a3e25d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/Razor/src/Microsoft.VisualStudio.LanguageServerClient.Razor/Logging/OutputWindowLogger.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ internal OutputWindowLogger()
3131
{
3232
}
3333

34-
public IDisposable BeginScope<TState>(TState state)
35-
{
36-
throw new NotImplementedException();
37-
}
34+
public IDisposable BeginScope<TState>(TState state) => Scope.Instance;
3835

3936
public bool IsEnabled(LogLevel logLevel)
4037
{
@@ -134,4 +131,13 @@ private IVsOutputWindowPane GetPane()
134131
return null;
135132
}
136133
}
134+
135+
private class Scope : IDisposable
136+
{
137+
public static readonly Scope Instance = new();
138+
139+
public void Dispose()
140+
{
141+
}
142+
}
137143
}

0 commit comments

Comments
 (0)