Skip to content

Code completion does not work within Lambda expressions #1943

Closed

Description

@lh123
  • Operating System: Win10 64bit
  • VS Code version: 1.23.0
  • C/C++ extension version: 0.16.1
  • C/C++ Compiler: MinGW-W64

image

image

Activity

  1. sean-mcmanus commented on May 7, 2018

    @sean-mcmanus
    Contributor

    There is a known issue in which lambda expression aren't given access to the private members when they should (inherited from Visual Studio...the bug has existed for 4 years, so I don't think they're fixing it soon). Public variables/methods autocomplete, right? That's what I'm seeing. If not, it's some other bug. We could work around this issue by skipping all the "is this accessible" checking (i.e. incorrectly showing inaccessible private data when we shouldn't) or find some way to implement a Show More Results completion option like VS has (I don't think VS Code has a UI mechanism for this yet though).

  2. lh123 commented on May 7, 2018

    @lh123
    ContributorAuthor

    Yes, public variables/methods autocomplete working properly,but private members doesn't work.

  3. lh123 commented on May 7, 2018

    @lh123
    ContributorAuthor

    I think we can use press ctrl + space twice or three times to trigger Show More Results.

  4. sean-mcmanus commented on May 7, 2018

    @sean-mcmanus
    Contributor

    Yeah, I think that would be doable. I think the fix should be pretty easy, but I'm not sure when it'll get on our schedule yet.

  5. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Aug 11, 2018
  6. sean-mcmanus commented on Aug 11, 2018

    @sean-mcmanus
    Contributor

    We've implemented the 2nd Ctrl+Space invoking "show more results" as a workaround for this (for our next release, #2386 ), but the root bug hasn't been fixed.

  7. removed
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Aug 11, 2018
  8. added this to the Tracking milestone on Nov 14, 2019
  9. Colengms commented on May 1, 2020

    @Colengms
    Contributor
  10. stevenxi commented on Jun 2, 2020

    @stevenxi

    I believe I'm experiencing similar problem, but with C#
    Maybe it's a general VS 2019 problem?

    Capture2

  11. sean-mcmanus commented on Jun 2, 2020

    @sean-mcmanus
    Contributor

    Steven.Xi (@stevenxi) Completion providing is language dependent with a different C# implementation, so the C# issue is unlikely to share the same root cause as the C++ issue (for VS or VS Code), i.e. you'd want to file a different bug for VS 2019 for C# (if it doesn't exist already).

  12. Colengms commented on Nov 15, 2024

    @Colengms
    Contributor

    This appears to have been addressed at some point, as it doesn't repro with the latest version (1.23.1):

    Image

    Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceVisual StudioInherited from Visual Studiobugmore votes neededIssues that have been postponed until more community members upvote it

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions