We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 612200d commit ada0a9aCopy full SHA for ada0a9a
src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs
@@ -95,6 +95,12 @@ public bool CanResolve(CompletionItem value)
95
// Handler for "completionItem/resolve". In VSCode this is fired when a completion item is highlighted in the completion list.
96
public async Task<CompletionItem> Handle(CompletionItem request, CancellationToken cancellationToken)
97
{
98
+ // We currently only support this request for anything that returns a CommandInfo: functions, cmdlets, aliases.
99
+ if (request.Kind != CompletionItemKind.Function)
100
+ {
101
+ return request;
102
+ }
103
+
104
// Get the documentation for the function
105
CommandInfo commandInfo =
106
await CommandHelpers.GetCommandInfoAsync(
0 commit comments