-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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 = 'try {
} catch [System.Net.Http.HttpResponseException] {
$PSItem.
}'
$column = $script.IndexOf('.', $script.IndexOf('$')) + 1
(TabExpansion2 -inputScript $script -cursorColumn $column).CompletionMatchesExpected behavior
CompletionText ListItemText ResultType ToolTip
-------------- ------------ ---------- -------
CategoryInfo CategoryInfo Property System.Management.Automation.ErrorCategoryInfo CategoryInfo { get; }
ErrorDetails ErrorDetails Property System.Management.Automation.ErrorDetails ErrorDetails { get; set; }
Exception Exception Property System.Exception Exception { get; }
FullyQualifiedErrorId FullyQualifiedErrorId Property string FullyQualifiedErrorId { get; }
InvocationInfo InvocationInfo Property System.Management.Automation.InvocationInfo InvocationInfo { get; }
PipelineIterationInfo PipelineIterationInfo Property System.Collections.ObjectModel.ReadOnlyCollection[int] PipelineIterationInfo { get;…
PSMessageDetails PSMessageDetails Property System.Object PSMessageDetails {get=& { Set-StrictMode -Version 1; $this.Exception.…
ScriptStackTrace ScriptStackTrace Property string ScriptStackTrace { get; }
TargetObject TargetObject Property System.Object TargetObject { get; }
Equals( Equals Method bool Equals(System.Object obj)
GetHashCode( GetHashCode Method int GetHashCode()
GetObjectData( GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runt…
GetType( GetType Method type GetType()
ToString( ToString Method string ToString()Ideally $PSItem.Exception.<tab> would also infer members of the exception specified in the catch block.
Actual behavior
No resultsError details
No response
Environment data
Name Value
---- -----
PSVersion 7.3.0-preview.5
PSEdition Core
GitCommitId 7.3.0-preview.5
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
vexx32 and mklement0
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