Skip to content

Commit 564a0c6

Browse files
committed
Remove temporary logging
1 parent 97aa551 commit 564a0c6

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/DocumentColor/CohostColorPresentationEndpoint.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.CodeAnalysis;
99
using Microsoft.CodeAnalysis.ExternalAccess.Razor.Cohost;
1010
using Microsoft.CodeAnalysis.ExternalAccess.Razor.Features;
11-
using Microsoft.CodeAnalysis.Razor.Logging;
1211

1312
namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
1413

@@ -19,12 +18,10 @@ namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
1918
[method: ImportingConstructor]
2019
#pragma warning restore RS0030 // Do not use banned APIs
2120
internal sealed class CohostColorPresentationEndpoint(
22-
IHtmlRequestInvoker requestInvoker,
23-
ILoggerFactory loggerFactory)
21+
IHtmlRequestInvoker requestInvoker)
2422
: AbstractRazorCohostDocumentRequestHandler<ColorPresentationParams, ColorPresentation[]?>
2523
{
2624
private readonly IHtmlRequestInvoker _requestInvoker = requestInvoker;
27-
private readonly ILogger _logger = loggerFactory.GetOrCreateLogger<CohostColorPresentationEndpoint>();
2825

2926
protected override bool MutatesSolutionState => false;
3027

@@ -38,8 +35,6 @@ internal sealed class CohostColorPresentationEndpoint(
3835

3936
private async Task<ColorPresentation[]?> HandleRequestAsync(ColorPresentationParams request, TextDocument razorDocument, CancellationToken cancellationToken)
4037
{
41-
_logger.LogDebug($"Document color request for {request.TextDocument.Uri}");
42-
4338
return await _requestInvoker.MakeHtmlLspRequestAsync<ColorPresentationParams, ColorPresentation[]>(
4439
razorDocument,
4540
Methods.TextDocumentColorPresentationName,

src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/DocumentColor/CohostDocumentColorEndpoint.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Microsoft.CodeAnalysis;
1010
using Microsoft.CodeAnalysis.ExternalAccess.Razor.Cohost;
1111
using Microsoft.CodeAnalysis.ExternalAccess.Razor.Features;
12-
using Microsoft.CodeAnalysis.Razor.Logging;
1312

1413
namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
1514

@@ -21,12 +20,10 @@ namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
2120
[method: ImportingConstructor]
2221
#pragma warning restore RS0030 // Do not use banned APIs
2322
internal sealed class CohostDocumentColorEndpoint(
24-
IHtmlRequestInvoker requestInvoker,
25-
ILoggerFactory loggerFactory)
23+
IHtmlRequestInvoker requestInvoker)
2624
: AbstractRazorCohostDocumentRequestHandler<DocumentColorParams, ColorInformation[]?>, IDynamicRegistrationProvider
2725
{
2826
private readonly IHtmlRequestInvoker _requestInvoker = requestInvoker;
29-
private readonly ILogger _logger = loggerFactory.GetOrCreateLogger<CohostDocumentColorEndpoint>();
3027

3128
protected override bool MutatesSolutionState => false;
3229

@@ -49,8 +46,6 @@ public ImmutableArray<Registration> GetRegistrations(VSInternalClientCapabilitie
4946

5047
private async Task<ColorInformation[]?> HandleRequestAsync(DocumentColorParams request, TextDocument razorDocument, CancellationToken cancellationToken)
5148
{
52-
_logger.LogDebug($"Document color request for {request.TextDocument.Uri}");
53-
5449
return await _requestInvoker.MakeHtmlLspRequestAsync<DocumentColorParams, ColorInformation[]>(
5550
razorDocument,
5651
Methods.TextDocumentDocumentColorName,

0 commit comments

Comments
 (0)