Page 1 of 1

PSS 2017 - Tab Completion of Sub Variables

Posted: Wed Jul 05, 2017 8:54 am
by joshua.staley
Product, version and build: PowerShell Studio 2017 5.4.136
32 or 64 bit version of product: 64bit
Operating system: Windows 10
32 or 64 bit OS: 64bit
PowerShell Version:

Name Value
---- -----
PSVersion 5.1.14393.1358
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1358
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


Tab expansion of sub-variables works in console but not in the Script Editor. Easiest example is using a ForEach Loop. This works fine in PowerShell_ISE.

Example:

$users = get-aduser -Filter * -SearchBase "OU=ENDUSERS,DC=DOMAIN,DC=LOCAL" -SearchScope 2

foreach ($user in $users)
{

}

I can expand $user and get both tab completion (console,ISE) or drop down list (ISE Only) but using PSS I do not get tab completion.

Re: PSS 2017 - Tab Completion of Sub Variables

Posted: Thu Jul 06, 2017 7:37 am
by davidc
The PowerShell session is running in a separate process that is not preserved. This is why it isn't able to provide the properties.

On our TODO list is the option to preserve this information to provide PrimalSense, but I can't provide any estimates as to when this will be implemented.