diff --git a/src/Tools/ExternalAccess/Razor/Cohost/Handlers/Completion.cs b/src/Tools/ExternalAccess/Razor/Cohost/Handlers/Completion.cs index 6498b9ca8adce..324bf4d394b44 100644 --- a/src/Tools/ExternalAccess/Razor/Cohost/Handlers/Completion.cs +++ b/src/Tools/ExternalAccess/Razor/Cohost/Handlers/Completion.cs @@ -81,6 +81,11 @@ private static CompletionListCache GetCache() return InlineCompletionsHandler.GetInlineCompletionItemsAsync(logger, document, position, options, xmlSnippetParser, cancellationToken); } + public static Document ApplyProvisionalEdit(SourceGeneratedDocument generatedDocument, SourceText updatedDocumentText) + { + return generatedDocument.Project.Solution.WithFrozenSourceGeneratedDocument(generatedDocument.Identity, DateTime.Now, updatedDocumentText); + } + private sealed class EmptyLogger : ILspLogger { public void LogStartContext(string message, params object[] @params)