You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when you type in [SomeType] and try to tab ctrl+space complete it displays list of types which is great, but it's a short type name. I often have to go thru 2-5 different types before I pick the correct one I want. Can you maybe allow a choice between short (if you want to keep old version) and full type?
Activity
TylerLeonhardt commentedon Aug 20, 2020
I think it seems reasonable that the tooltip for types can include the full type name.
TylerLeonhardt commentedon Aug 20, 2020
https://github.com/PowerShell/PowerShellEditorServices/blob/8cfbf2b4eb636956c31ba6ad258bb3d1b09155eb/src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs#L254
I think if we just add
case CompletionType.Type:right above this line, this will work.TylerLeonhardt commentedon Aug 21, 2020
I'd also want a test added for this. That's fairly straightforward.
[System.Collections.)CompleteTypeName) that looks like: https://github.com/PowerShell/PowerShellEditorServices/blob/master/test/PowerShellEditorServices.Test.Shared/Completion/CompleteCommandFromModule.cs (note line 33 is the tooltip, so the value of that would be the full type name)Running the tests is easy. Run
Invoke-Build Build,TestServerin the PSES directory.TylerLeonhardt commentedon Sep 9, 2020
This will be in the next preview thanks to JB Lewis (@AspenForester)!
PrzemyslawKlys commentedon Sep 9, 2020
Wohoo :-D Thank you JB Lewis (@AspenForester)