提交 9c40d6a4 编写于 作者: S Sam Harwell

Ensure recoverable text is in temporary storage

Fixes #45452
上级 c4674ce2
......@@ -97,7 +97,14 @@ protected static ValueSource<TextAndVersion> CreateStrongText(TextLoader loader,
}
protected static ValueSource<TextAndVersion> CreateRecoverableText(TextAndVersion text, SolutionServices services)
=> new RecoverableTextAndVersion(CreateStrongText(text), services.TemporaryStorage);
{
var result = new RecoverableTextAndVersion(CreateStrongText(text), services.TemporaryStorage);
// Ensure the recoverable text is saved in temporary storage
result.GetValue();
return result;
}
protected static ValueSource<TextAndVersion> CreateRecoverableText(TextLoader loader, DocumentId documentId, SolutionServices services)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册