-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).Up for GrabsWill shepherd PRs.Will shepherd PRs.
Description
Prerequisites
- I have written a descriptive issue title.I have searched all issues to ensure it has not already been reported.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Summary
Similar to how the completion tooltip for commands include a summary of the command, it would be nice if the parameters also included the parameter help. So for ls -Path
the tooltip would show:
[string[]]
Specifies a path to one or more locations. Wildcards are accepted. The default location is the current directory (`.`).
Proposed Design
No response
Metadata
Metadata
Assignees
Labels
Issue-EnhancementA feature request (enhancement).A feature request (enhancement).Up for GrabsWill shepherd PRs.Will shepherd PRs.
Activity
JustinGrote commentedon Oct 23, 2024
Related to PowerShell/vscode-powershell#3026, when we sort out some of the LSP stuff to keep this from lagging the interface (especially as help can be slow to resolve) or if we can't we can gate it behind a setting and warn that hovers may take longer to resolve.
MartinGC94 commentedon Oct 23, 2024
I don't think there's a setting for the command help we get when completing command names and I haven't heard anyone complain about that so I'm not sure if a setting for this is really needed, but of course it doesn't hurt to have it.
I hadn't thought about showing the help when hovering over the parameter but that's a good idea as well.
JustinGrote commentedon Oct 23, 2024
It's certainly something I want to improve and I'll put it on my to-do list, we just may need to gate it behind a feature flag for some kinds of lookups if it turns out to really slow down the hover/completer
JustinGrote commentedon Jul 23, 2025
@MartinGC94 so as I recall there was an issue with the tooltip getting exposed. Do you see the tooltip in psreadline currently because I don't.
MartinGC94 commentedon Jul 23, 2025
I assume you are referring to this issue: #2222 ?
The related PR hasn't been merged yet: PowerShell/PowerShell#25108 so the only tooltip we have today is the type and name you see in the teal color of your screenshot.
JustinGrote commentedon Jul 23, 2025
@MartinGC94 yep that was it. I am updating how we pull from help so it is more discoverable and accessible. I'll try to nudge that other PR along but if it dies I have a way to provide the info at least to parameters.
JustinGrote commentedon Jul 24, 2025
@andyleejordan I am going to do a partial reimplementation of https://github.com/PowerShell/platyPS/tree/main/src/Transform to facilitate getting this to work until PowerShell/PowerShell#25108 gets merged as it will likely stall during stabilization time for release coming up.
Ideally the PlatyPS team would spin some of this stuff off into a separate non-dependency assembly we could leverage without having to banana-monkey-jungle all of PlatyPS? Downside is they would need to support at least Transform as a public API, but we (as a community) wouldn't have parallel implementations. Thoughts?
CC @adityapatwardhan and @JamesWTruher as well for thoughts.