Steps to reproduce
Open up Powershell (with PSReadline), VS code (with Powershell extension) or even just the ISE and type in the following:
#2 suggestions pop up for the parameters "Options" and "ErrorMessage".
[ValidatePattern(<CTRL+Space>)]$StringToCheck
#No options show up
[ValidatePattern("\w",<CTRL+Space>)]$StringToCheck
#You can still tab complete the parameters.
[ValidatePattern("\w",O<Tab>)]$StringToCheck
This happens with any attribute.
Expected behavior
Intellisense shows suggestions for attribute parameters, even after adding the first parameter.
Actual behavior
Intellisense only shows suggestions for the first parameter you add.
Environment data
Name Value
---- -----
PSVersion 7.1.0-preview.3
PSEdition Core
GitCommitId 7.1.0-preview.3
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Open up Powershell (with PSReadline), VS code (with Powershell extension) or even just the ISE and type in the following:
This happens with any attribute.
Expected behavior
Intellisense shows suggestions for attribute parameters, even after adding the first parameter.
Actual behavior
Intellisense only shows suggestions for the first parameter you add.
Environment data