Skip to content

Intellisense only works for the first parameter of an attribute #12771

@MartinGC94

Description

@MartinGC94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions