Skip to content

Commit 7ba9c2d

Browse files
authored
Fix log messages (#10280)
2 parents ea341ef + 292ee54 commit 7ba9c2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/DocumentContextFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal sealed class DocumentContextFactory(
110110
var normalizedDocumentPath = FilePathNormalizer.Normalize(filePath);
111111
if (miscellaneousProject.GetDocument(normalizedDocumentPath) is { } miscDocument)
112112
{
113-
_logger.LogDebug($"Found document {filePath} in the misc files project, but was asked for project context {projectContext}");
113+
_logger.LogDebug($"Found document {filePath} in the misc files project, but was asked for project context {projectContext.Id}");
114114
return miscDocument;
115115
}
116116

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectSystem/RazorProjectService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ await _projectManager
367367

368368
private async Task UpdateProjectDocumentsAsync(ImmutableArray<DocumentSnapshotHandle> documents, ProjectKey projectKey, CancellationToken cancellationToken)
369369
{
370-
_logger.LogDebug($"UpdateProjectDocuments for {projectKey} with {documents.Length} documents.");
370+
_logger.LogDebug($"UpdateProjectDocuments for {projectKey} with {documents.Length} documents: {string.Join(", ", documents.Select(d => d.FilePath))}");
371371

372372
var project = _projectManager.GetLoadedProject(projectKey);
373373
var currentProjectKey = project.Key;

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectSystem/SnapshotResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ await _projectManager
110110
return miscDocument;
111111
}
112112

113-
_logger.LogTrace($"{documentFilePath} not found in {_projectManager.GetProjects().SelectMany(p => p.DocumentFilePaths)}");
113+
_logger.LogTrace($"{documentFilePath} not found in {string.Join(", ", _projectManager.GetProjects().SelectMany(p => p.DocumentFilePaths))}");
114114

115115
return null;
116116
}

0 commit comments

Comments
 (0)