Skip to content

Keyword tooltips aren't shown in VS code #3328

Closed
@MartinGC94

Description

@MartinGC94

System Details

System Details Output

### VSCode version: 1.55.0-insider 06b54543d660353a04cdab6554d1f27266a537fd x64

### VSCode extensions:
ms-dotnettools.csharp@1.23.11
ms-vscode.cpptools@1.3.1
ms-vscode.powershell-preview@2021.4.2
redhat.vscode-commons@0.0.6
redhat.vscode-xml@0.16.0
twxs.cmake@0.0.17


### PSES version: 2.4.1.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.2.0-preview.5
PSEdition                      Core
GitCommitId                    7.2.0-preview.5-12-g026ffd42acfd39c8bce483fea18098ca42c4109e
OS                             Microsoft Windows 10.0.21359
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

While working on PowerShell/PowerShell#15337 I noticed that if I create a completion result as a Keyword: https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.completionresulttype I can't see the tooltip data but if I change it to something else like Command the tooltip is visible. See the following 2 screenshots:

Keyword:
Help does not work
Command:
Help works

The full list of completion result types that don't show tooltips in VS code are:
Text
History
ProviderItem
ProviderContainer
Keyword
DynamicKeyword

Expected Behaviour

Tooltips are visible regardless of completionresulttype.

Actual Behaviour

Tooltips are only visible with specific completionresulttypes.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions