Skip to content

Commit 1d19aaa

Browse files
committed
Don't think we need this any more
1 parent 1141376 commit 1d19aaa

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ private void AddDocumentToMiscProjectCore(ProjectSnapshotManager.Updater updater
6868
_logger.LogInformation($"Adding document '{filePath}' to project '{miscFilesProject.Key}'.");
6969

7070
updater.DocumentAdded(miscFilesProject.Key, hostDocument, textLoader);
71-
72-
// Adding a document to a project could also happen because a target was added to a project, or we're moving a document
73-
// from Misc Project to a real one, and means the newly added document could actually already be open.
74-
// If it is, we need to make sure we start generating it so we're ready to handle requests that could start coming in.
75-
if (_projectManager.IsDocumentOpen(textDocumentPath) &&
76-
_projectManager.TryGetLoadedProject(miscFilesProject.Key, out var project) &&
77-
project.GetDocument(textDocumentPath) is { } document)
78-
{
79-
document.GetGeneratedOutputAsync().Forget();
80-
}
8171
}
8272

8373
public Task OpenDocumentAsync(string filePath, SourceText sourceText, int version, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)