Skip to content

Commit 39e8d1f

Browse files
committed
PR Feedback
1 parent 2740929 commit 39e8d1f

File tree

1 file changed

+1
-1
lines changed
  • src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/ProjectState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ public ProjectState WithHostProjectAndWorkspaceState(HostProject hostProject, Pr
284284

285285
var documents = Documents.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.WithProjectChange(cacheComputedState: configUnchanged), FilePathNormalizingComparer.Instance);
286286

287+
// If the host project has changed then we need to recompute the imports map
287288
var importsToRelatedDocuments = configUnchanged
288289
? ImportsToRelatedDocuments
289290
: ComputeImportsToRelatedDocuments(documents);
@@ -293,7 +294,6 @@ public ProjectState WithHostProjectAndWorkspaceState(HostProject hostProject, Pr
293294

294295
ImmutableDictionary<string, ImmutableArray<string>> ComputeImportsToRelatedDocuments(ImmutableDictionary<string, DocumentState> documents)
295296
{
296-
// If the host project has changed then we need to recompute the imports map
297297
var importsToRelatedDocuments = s_emptyImportsToRelatedDocuments;
298298

299299
foreach (var document in documents)

0 commit comments

Comments
 (0)