Skip to content

Sometimes when typing [type]:: you get no completions #1810

Closed

Description

This happens because we get a completion request for [type]: which gets no results and for some reason isn't marked as incomplete. Need to look into how to fix that.

Activity

  1. ghost added
    Needs: TriageMaintainer attention needed!
    on May 20, 2022
  2. moved this from In Progress to Missed in American Pharoah on Oct 4, 2022
  3. moved this from Todo to Wishlist in Flying Foxon Aug 15, 2023
  4. MartinGC94 commented on Aug 3, 2024

    @MartinGC94
    Contributor

    It can also happen when typing something like: Get-NetAdapter - or Get-Disk - but only if you've CD'ed into an empty folder and the modules haven't been imported yet.

  5. haverland389 commented on Nov 5, 2025

    @haverland389

    Are there any new updates? Has this been abandoned? It sounds like it used to be a higher priority but is now on the back burner?

    Thanks for any information you can provide!

    If anyone finds this helpful, I have started using a PS 7 session in ISE so that I can have the desired IntelliSense experience. It looks a bit odd/clunky but has been working for me so far.

    $Process = Start-Process PWSH -ArgumentList @("-NoExit") -PassThru -WindowStyle Hidden
    
    function New-OutOfProcRunspace {
        param($ProcessId)
    
        $ci = New-Object -TypeName System.Management.Automation.Runspaces.NamedPipeConnectionInfo -ArgumentList @($ProcessId)
        $tt = [System.Management.Automation.Runspaces.TypeTable]::LoadDefaultTypeFiles()
    
        $Runspace = [System.Management.Automation.Runspaces.RunspaceFactory]::CreateRunspace($ci, $Host, $tt)
    
        $Runspace.Open()
        $Runspace
    }
    
    $Host.PushRunspace($(New-OutOfProcRunspace -ProcessId $Process.Id))
    
  6. MartinGC94 commented on Nov 5, 2025

    @MartinGC94
    Contributor

    There's a more manual, but easier to remember way: Launch pwsh and type in $pid. Copy the pid and from ISE type in Enter-PSHostProcess 123 (the PID from before).
    It's nice to not only get a better IntelliSense experience, but also better syntax highlighting (even if it doesn't support the newer syntax sugar).

  7. andyleejordan commented on Jun 15, 2026

    @andyleejordan
    Member

    Resolved — [type]:: static member completions work via the completion rewrite (#1799/#1935). Closing as completed.


    Drafted by GitHub Copilot (Claude Opus 4.8) at Andy Jordan (@andyleejordan)'s request.

  8. moved this from Wishlist to Done in Flying Foxon Jun 15, 2026
  9. MartinGC94 commented on Jun 15, 2026

    @MartinGC94
    Contributor

    I can still consistently reproduce it by typing in: [System.Collections.Generic.List[string]]:: in an otherwise empty file. It only shows completions if I press Ctrl+Space or slowly type out each :. My editor services version is 4.6.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions