Skip to content

Commit

Permalink
Merge pull request #330 from sharwell/source-index
Browse files Browse the repository at this point in the history
Fix IndexOutOfBoundsException with additional projects
  • Loading branch information
sharwell authored May 29, 2019
2 parents 2bc3564 + 11bab07 commit f9c4c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ protected virtual Project CreateProjectImpl((string filename, SourceText content

for (var i = 0; i < projectState.Sources.Count; i++)
{
(var newFileName, var source) = sources[i];
(var newFileName, var source) = projectState.Sources[i];
var documentId = DocumentId.CreateNewId(additionalProjectId, debugName: newFileName);
solution = solution.AddDocument(documentId, newFileName, source);
}
Expand Down

0 comments on commit f9c4c5b

Please sign in to comment.