-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueWG-Interactive-Consolethe console experiencethe console experienceWG-ReviewedA Working Group has reviewed this and made a recommendationA Working Group has reviewed this and made a recommendation
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Currently for the following Argument Completers:
VerbArgumentCompleterStrictModeVersionArgumentCompleterScopeArgumentCompleter
There is no completion if the user inputs single quote ' or double quote " before pressing TAB. This is because these argument completers do not use HandleDoubleAndSingleQuote in comparison to some other completers.
These completers should probably reuse a method which calls HandleDoubleAndSingleQuote so this logic can be shared across them.
Expected behavior
PS> Set-StrictMode -Version Lat -> Should complete to Latest
PS> Set-StrictMode -Version 'Lat -> Should complete to 'Latest'
PS> Set-StrictMode -Version "Lat -> Should complete to "Latest"
PS> Get-Variable -Scope Glo -> Should complete to Global
PS> Get-Variable -Scope 'Glo -> Should complete to 'Global'
PS> Get-Variable -Scope "Glo -> Should complete to "Global"Actual behavior
PS> Set-StrictMode -Version Lat -> This completes to Latest
PS> Set-StrictMode -Version 'Lat -> This does not complete to 'Latest'
PS> Set-StrictMode -Version "Lat -> This does not complete to "Latest"
PS> Get-Variable -Scope Glo -> This completes to Global
PS> Get-Variable -Scope 'Glo -> This does not complete to 'Global'
PS> Get-Variable -Scope "Glo -> This does not complete to "Global"Error details
Environment data
Name Value
---- -----
PSVersion 7.5.0-preview.3
PSEdition Core
GitCommitId 7.5.0-preview.3-241-g2e97dd4d5ae2b1a3c5440fe8f91777059db27b89
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueWG-Interactive-Consolethe console experiencethe console experienceWG-ReviewedA Working Group has reviewed this and made a recommendationA Working Group has reviewed this and made a recommendation