You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Endpoints/RazorCustomMessageTarget.cs
_logger?.LogDebug($"Trying to synchronize for {caller} to version {requiredHostDocumentVersion} of {hostDocument.Uri} for {hostDocument.GetProjectContext()?.Id??"(no project context)"}");
144
+
_logger.LogDebug($"Trying to synchronize for {caller} to version {requiredHostDocumentVersion} of {hostDocument.Uri} for {hostDocument.GetProjectContext()?.Id??"(no project context)"}");
_logger?.LogDebug($"{(result.Synchronized?"Did":"Did NOT")} synchronize for {caller}: Version {requiredHostDocumentVersion} for {result.VirtualSnapshot?.Uri}");
169
+
_logger.LogDebug($"{(result.Synchronized?"Did":"Did NOT")} synchronize for {caller}: Version {requiredHostDocumentVersion} for {result.VirtualSnapshot?.Uri}");
170
170
171
171
// If we failed to sync on version 1, then it could be that we got new information while waiting, so try again
_logger?.LogDebug($"{(result.Synchronized?"Did":"Did NOT")} synchronize for {caller}: Version {requiredHostDocumentVersion} for {result.VirtualSnapshot?.Uri}");
187
+
_logger.LogDebug($"{(result.Synchronized?"Did":"Did NOT")} synchronize for {caller}: Version {requiredHostDocumentVersion} for {result.VirtualSnapshot?.Uri}");
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Endpoints/RazorCustomMessageTarget_Diagnostics.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ internal partial class RazorCustomMessageTarget
43
43
{
44
44
if(eis not OperationCanceledException)
45
45
{
46
-
_logger?.LogError(e,$"Exception thrown in PullDiagnostic delegation");
46
+
_logger.LogError(e,$"Exception thrown in PullDiagnostic delegation");
47
47
}
48
48
// Return null if any of the tasks getting diagnostics results in an error
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Endpoints/RazorCustomMessageTarget_SemanticTokens.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -132,12 +132,12 @@ internal partial class RazorCustomMessageTarget
132
132
133
133
if(response?.Dataisnull)
134
134
{
135
-
_logger?.LogDebug($"Made one semantic token request to Roslyn for {semanticTokensParams.Ranges.Length} ranges but got null result back, due to sync issues");
135
+
_logger.LogDebug($"Made one semantic token request to Roslyn for {semanticTokensParams.Ranges.Length} ranges but got null result back, due to sync issues");
136
136
// Weren't able to re-invoke C# semantic tokens but we have to indicate it's due to out of sync by providing the old version
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Endpoints/RazorCustomMessageTarget_UpdateCSharpBuffer.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) .NET Foundation. All rights reserved.
1
+
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT license. See License.txt in the project root for license information.
3
3
4
4
usingSystem;
@@ -40,7 +40,7 @@ internal async Task UpdateCSharpBufferCoreAsync(UpdateBufferRequest request, Can
@@ -70,7 +70,7 @@ request.ProjectKeyId is not null &&
70
70
// sync with their understanding of the document contents, and since changes come in as a list of changes,
71
71
// the user experience is broken. All we can do is hope the user closes and re-opens the document.
72
72
Debug.Fail($"Server wants to update {hostDocumentUri} in {request.ProjectKeyId} but we don't know about the document being in any projects");
73
-
_logger?.LogError($"Server wants to update {hostDocumentUri} in {request.ProjectKeyId} by we only know about that document in misc files. Server and client are now out of sync.");
73
+
_logger.LogError($"Server wants to update {hostDocumentUri} in {request.ProjectKeyId} by we only know about that document in misc files. Server and client are now out of sync.");
74
74
return;
75
75
}
76
76
}
@@ -79,7 +79,7 @@ request.ProjectKeyId is not null &&
0 commit comments