PowerShell / CompletionPredictor

MIT License
152 stars 9 forks source link

Runspace name #15

Closed ThomasNieto closed 1 year ago

ThomasNieto commented 1 year ago

Summary of the new feature / enhancement

I would like the name for the runspace created by the predictor to have something other than the default. Currently it is difficult to identify what created the runspace or what it is used for.

Currently:

Get-Runspace

 Id Name            ComputerName    Type          State         Availability
 -- ----            ------------    ----          -----         ------------
  1 Runspace1       localhost       Local         Opened        Busy
  2 Runspace2       localhost       Local         Opened        Available

Example update:

PS C:\> Get-Runspace | ft -a

Id Name                ComputerName Type  State  Availability
-- ----                ------------ ----  -----  ------------
 1 Runspace1           localhost    Local Opened Busy
 2 CompletionPredictor localhost    Local Opened Available

Proposed technical implementation details (optional)

No response