-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Interactive-IntelliSensetab completiontab completion
Description
Description
Because of this issue, it's not possible to provide completion for native command parameters.
Inputs that repro the issue for command 'foo' (i.e. do not invoke completion):
- foo -<tab>
- foo -a<tab>
- foo --<tab>
Inputs that do not repro the issue:
- foo --a<tab>
- foo ---<tab>
The issue repros with and without PSReadLine.
Steps to reproduce
-
Register a new argument completer
Register-ArgumentCompleter -Native -CommandName foo -ScriptBlock { "bar" } -
Type 'foo -<tab>'
Expected behavior
'foo -' completes to 'foo bar'
Actual behavior
The text does not change
Environment data
> $PSVersionTable
Name Value
---- -----
PSRemotingProtocolVersion 2.3
CLRVersion
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
GitCommitId v6.0.0-alpha.14
PSVersion 6.0.0-alpha
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSEdition Core
BuildVersion 3.0.0.0rkeithhill, gluons and tompazourek
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Interactive-IntelliSensetab completiontab completion