PowerShellEditorServices icon indicating copy to clipboard operation
PowerShellEditorServices copied to clipboard

Auto Completion Suggestions for type members seems unaware of the context

Open msftrncs opened this issue 3 years ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Steps to reproduce

Note I have the following using context.

using namespace System.Data
using namespace System.Data.OleDb

When the completions suggestion auto fires after the :: is typed, it only shows recent input.

[OleDbType]::

image

It seems unaware of the current context, possibly that the event trigger of pressing : twice doesn't wait for the context to be resolved before offering suggestions. If the suggestion box is cancelled and completions are requested manually, then the suggestions are relevant to the context.

image

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core 
GitCommitId                    7.2.6
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.0

Version

v2022.8.4

msftrncs avatar Aug 26 '22 00:08 msftrncs