Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Completion Suggestions for type members seems unaware of the context #1910

Closed
3 tasks done
msftrncs opened this issue Aug 26, 2022 · 3 comments
Closed
3 tasks done
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@msftrncs
Copy link

msftrncs commented Aug 26, 2022

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 26, 2022
@SeeminglyScience SeeminglyScience added Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Sep 23, 2022
@SeeminglyScience
Copy link
Collaborator

Duplicate of #1810

@SeeminglyScience SeeminglyScience marked this as a duplicate of #1810 Sep 23, 2022
@SeeminglyScience
Copy link
Collaborator

Thanks for the report! This is a known issue being tracked in #1810.

For a temporary workaround, you can press Ctrl + Space when it happens. If that just comes up saying "no completions" you can usually press Esc to close the completions window and then Ctrl + Space to trigger it again.

@ghost
Copy link

ghost commented Sep 24, 2022

This issue has been marked as duplicate and has not had any activity in a day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Sep 24, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants