提交 94570c47 编写于 作者: T Tomas Matousek

Fix synchronization of DesignTimeDocument

上级 7e89bce3
......@@ -114,7 +114,9 @@ public async Task<DocumentInfo> CreateDocumentInfoAsync(Checksum documentChecksu
documentInfo.SourceCodeKind,
textLoader,
documentInfo.FilePath,
documentInfo.IsGenerated);
documentInfo.IsGenerated,
documentInfo.DesignTimeOnly,
documentServiceProvider: null);
}
private async Task<IEnumerable<DocumentInfo>> CreateDocumentInfosAsync(ChecksumCollection documentChecksums, CancellationToken cancellationToken)
......
......@@ -429,6 +429,7 @@ private async Task<TextDocument> UpdateDocumentInfoAsync(TextDocument document,
Contract.ThrowIfFalse(document.State.Attributes.Name == newDocumentInfo.Name);
Contract.ThrowIfFalse(document.State.Attributes.FilePath == newDocumentInfo.FilePath);
Contract.ThrowIfFalse(document.State.Attributes.IsGenerated == newDocumentInfo.IsGenerated);
Contract.ThrowIfFalse(document.State.Attributes.DesignTimeOnly == newDocumentInfo.DesignTimeOnly);
if (document.State.Attributes.Folders != newDocumentInfo.Folders)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册