Skip to content

Full type name when using ctrl+space #2898

Closed
PowerShell/PowerShellEditorServices
#1352

Description

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

Activity

  1. ghost added
    Needs: Triage
    on Aug 20, 2020
  2. TylerLeonhardt commented on Aug 20, 2020

    @TylerLeonhardt
    Member

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

  3. added
    Issue-Enhancement
    Up for Grabs
    and removed
    Needs: Triage
    on Aug 20, 2020
  4. TylerLeonhardt commented on Aug 21, 2020

    @TylerLeonhardt
    Member

    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.

  5. TylerLeonhardt commented on Sep 9, 2020

    @TylerLeonhardt
    Member

    This will be in the next preview thanks to JB Lewis (@AspenForester)!

  6. PrzemyslawKlys commented on Sep 9, 2020

    @PrzemyslawKlys
    ContributorAuthor

    Wohoo :-D Thank you JB Lewis (@AspenForester)

  7. ghost added
    Needs: Maintainer Attention
    on Sep 9, 2020
  8. removed
    Needs: Maintainer Attention
    on Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IntelliSenseIssue-EnhancementUp for Grabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions