Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 85ebb35

Browse files
N. Taylor Mullenajaybhargavb
authored andcommitted
Turn old completion on when async completion is active.
1 parent d5a6f99 commit 85ebb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.VisualStudio.Editor.Razor/RazorDirectiveCompletionProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ public override Task ProvideCompletionsAsync(CompletionContext context)
115115
private Task AddCompletionItems(CompletionContext context)
116116
{
117117
if (!_textBufferProvider.TryGetFromDocument(context.Document, out var textBuffer) ||
118-
!_dependencies.Value.AsyncCompletionBroker.IsCompletionSupported(textBuffer.ContentType))
118+
_dependencies.Value.AsyncCompletionBroker.IsCompletionSupported(textBuffer.ContentType))
119119
{
120-
// Completion is not supported.
120+
// Async completion is supported that code path will handle completion.
121121
return Task.CompletedTask;
122122
}
123123

0 commit comments

Comments
 (0)