vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Parameter Completion Codelens should automatically switch to the current matching ParameterSet

Open JustinGrote opened this issue 3 years ago • 2 comments

Issue Type: Feature Request

This might require additional calls but ideally if I am entering a parameter that is on a unique parameterset, the codelens should automatically switch to that overload. image

Extension version: 2022.5.5 VS Code version: Code - Insiders 1.68.0-insider (c0769274fa136b45799edeccc0d0a2f645b75caf, 2022-05-23T05:17:12.256Z) OS version: Windows_NT x64 10.0.22621 Restricted Mode: No

JustinGrote avatar May 26 '22 16:05 JustinGrote

Note this is "signature help" rather than a code lens but yeah it'd be nice for sure. It'd need a call to StaticParameterBinder.BindCommand which is pretty expensive, so it may not be feasible but absolutely worth trying.

SeeminglyScience avatar May 26 '22 21:05 SeeminglyScience

@SeeminglyScience maybe debounce it to a configurable setting delay, say 500ms or so, so that it's not slamming BindCommands? Also should be very cacheable.

JustinGrote avatar May 26 '22 21:05 JustinGrote