Turn old completion on when async completion is active.
This commit is contained in:
parent
d5a6f99c8f
commit
85ebb3585f
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue