Turn old completion on when async completion is active.

This commit is contained in:
N. Taylor Mullen 2018-10-29 16:46:04 -07:00 committed by Ajay Bhargav Baaskaran
parent d5a6f99c8f
commit 85ebb3585f
1 changed files with 2 additions and 2 deletions

View File

@ -115,9 +115,9 @@ namespace Microsoft.VisualStudio.Editor.Razor
private Task AddCompletionItems(CompletionContext context) private Task AddCompletionItems(CompletionContext context)
{ {
if (!_textBufferProvider.TryGetFromDocument(context.Document, out var textBuffer) || if (!_textBufferProvider.TryGetFromDocument(context.Document, out var textBuffer) ||
!_dependencies.Value.AsyncCompletionBroker.IsCompletionSupported(textBuffer.ContentType)) _dependencies.Value.AsyncCompletionBroker.IsCompletionSupported(textBuffer.ContentType))
{ {
// Completion is not supported. // Async completion is supported that code path will handle completion.
return Task.CompletedTask; return Task.CompletedTask;
} }