Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ public async Task DismissCompletionSessionsAsync(CancellationToken cancellationT
IAsyncCompletionSession? TriggerCompletion()
{
lastSessionResetTime = stopWatch.ElapsedMilliseconds;
return asyncCompletion.TriggerCompletion(textView, new CompletionTrigger(CompletionTriggerReason.Insertion, textView.TextSnapshot), textView.Caret.Position.BufferPosition, cancellationToken);
return asyncCompletion.TriggerCompletion(textView, new CompletionTrigger(CompletionTriggerReason.Invoke, textView.TextSnapshot), textView.Caret.Position.BufferPosition, cancellationToken);
}

void OpenOrUpdate(IAsyncCompletionSession currentSession)
{
// Preserve insertion semantics for active sessions so filtering and uniqueness still
// reflect the text the test typed before we poll for the target item.
currentSession.OpenOrUpdate(new CompletionTrigger(CompletionTriggerReason.Insertion, textView.TextSnapshot), textView.Caret.Position.BufferPosition, cancellationToken);
lastOpenOrUpdateTime = stopWatch.ElapsedMilliseconds;
}
Expand Down