Vscode-powershell: Full type name when using ctrl+space

Created on 20 Aug 2020  路  5Comments  路  Source: PowerShell/vscode-powershell

Summary of the new feature

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?

image

or

image

Area-IntelliSense Issue-Enhancement Up-for-Grabs

Most helpful comment

This will be in the next preview thanks to @AspenForester!

All 5 comments

I think it seems reasonable that the tooltip for types can include the full type name.

I'd also want a test added for this. That's fairly straightforward.

  1. Add an incomplete type name at the end of here: https://github.com/PowerShell/PowerShellEditorServices/blob/master/test/PowerShellEditorServices.Test.Shared/Completion/CompletionExamples.psm1 (something like [System.Collections.)
  2. Create a new class (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)
  3. Copy this test but use your new class

Running the tests is easy. Run Invoke-Build Build,TestServer in the PSES directory.

This will be in the next preview thanks to @AspenForester!

Wohoo :-D Thank you @AspenForester

Was this page helpful?
0 / 5 - 0 ratings