-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-IntelliSensetab completiontab completion
Description
When getting completion results while in a hashtable that is used for splatting, completion should treat keys as parameter names and values as arguments.
This would be easiest supported easiest when
- The
HashtableAstis on the RHS of anAssignmentStatementAst - A
VariableExpressionAstis on the LHS - The same variable is splatted in a
CommandAst
Ideally completion features would be the same as when in the CommandAst, such as
- Keys are completed as parameter names
- Values would take
ArgumentCompleter,ValidateSet,Enumtyped parameters, etc into account - Parameters already bound in the
CommandAstwould be excluded
/cc @TheIncorrigible1
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0dragonwolf83, skest3qc, chriskuech, Halkcyon, angularsen and 4 more
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-IntelliSensetab completiontab completion