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
// We've already published a newer version of this document. No-op.
78
+
Debug.Fail("C# document being published that is older than one we've previously published!");
79
+
_logger.LogWarning($"Skipping publish of C# for {filePath} because we've already published version {previouslyPublishedData.HostDocumentVersion}, and this request is for {hostDocumentVersion}.");
// We've already published a newer version of this document. No-op.
125
+
Debug.Fail("Html document being published that is older than one we've previously published!");
126
+
_logger.LogWarning($"Skipping publish of Html for {filePath} because we've already published version {previouslyPublishedData.HostDocumentVersion}, and this request is for {hostDocumentVersion}.");
// Source texts match along with host document versions. We've already published something that looks like this. No-op.
118
134
return;
119
135
}
120
136
121
-
_logger.LogTrace(
137
+
_logger.LogDebug(
122
138
$"Updating HTML buffer of {filePath} to correspond with host document version {hostDocumentVersion}. {previouslyPublishedData.SourceText.Length} -> {sourceText.Length} = Change delta of {sourceText.Length-previouslyPublishedData.SourceText.Length} via {textChanges.Count} text changes.");
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)"}");
150
+
149
151
// For Html documents we don't do anything fancy, just call the standard service
150
152
// If we're not generating unique document file names, then we can treat C# documents the same way
_logger.LogDebug($"Trying to synchronize for {caller} to version {requiredHostDocumentVersion} of {hostDocument.Uri} for {hostDocument.GetProjectContext()?.Id??"(no project context)"}");
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Endpoints/RazorCustomMessageTarget_UpdateHtmlBuffer.cs
0 commit comments