We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c7e79 commit 09a80ddCopy full SHA for 09a80dd
src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs
@@ -215,7 +215,7 @@ internal async Task<CompletionResults> GetCompletionsInFileAsync(
215
_logger,
216
cancellationToken).ConfigureAwait(false);
217
218
- if (result is null || result.CompletionMatches.Count is 0)
+ if (!(result?.CompletionMatches?.Count > 0))
219
{
220
return new CompletionResults(IsIncomplete: true, Array.Empty<CompletionItem>());
221
}
0 commit comments