-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-IntelliSensetab completiontab completion
Description
Steps to reproduce
$script = '([ICloneable]$var).'
(TabExpansion2 -inputScript $script -cursorColumn $script.Length).CompletionMatches
$script = '($var -as [ICloneable]).'
(TabExpansion2 -inputScript $script -cursorColumn $script.Length).CompletionMatchesExpected behavior
Both completions include the clone method.
CompletionText ListItemText ResultType ToolTip
-------------- ------------ ---------- -------
Clone( Clone Method System.Object ICloneable.Clone()
Clone( Clone Method System.Object ICloneable.Clone()
Actual behavior
Only the explicit cast includes the clone method.
CompletionText ListItemText ResultType ToolTip
-------------- ------------ ---------- -------
Clone( Clone Method System.Object ICloneable.Clone()
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.1
PSEdition Core
GitCommitId 7.0.0-preview.1
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
This also repros on all previous versions of PowerShell. On the fence about calling this a bug vs an enhancement, so use whichever tag you'd like I suppose.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-IntelliSensetab completiontab completion