Skip to content

IntelliSense completion fails to give results in many cases -- after return/public and before a comment (works in VS) #12412

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

Closed
sean-mcmanus opened this issue Jun 24, 2024 · 1 comment
Assignees
Labels
bug Feature: Auto-complete fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@sean-mcmanus
Copy link
Contributor

Use code

class foo { public: int jjj;};
int main()
{
    auto iii = foo{};
    return
        // no completion on this line, e.g. no main or iii suggestions
        iii
        // no completion on this line, e.g. no main or iii suggestions
        .jjj;
}

Invoke completion via Ctrl+Space on the indicated lines. There are no results from cpptools, but there should be -- it works in VS. Reproed with 1.20.5/1.21.0.

@sean-mcmanus sean-mcmanus changed the title IntelliSense completions fails to give results in a return statement (works in VS) IntelliSense completion fails to give results in a return statement (works in VS) Jun 24, 2024
@browntarik browntarik self-assigned this Jun 26, 2024
@browntarik browntarik moved this to Todo in cpptools Jun 26, 2024
@sean-mcmanus sean-mcmanus changed the title IntelliSense completion fails to give results in a return statement (works in VS) IntelliSense completion fails to give results in many cases -- after return/public and before a comment (works in VS) Jul 9, 2024
@sean-mcmanus
Copy link
Contributor Author

There are multiple cases:

  1. After return in the original example.
  2. After public.
  3. Before the // comments in the original example.

I'm guessing there's some sort of shared root cause.

@browntarik browntarik moved this from Todo to In progress in cpptools Jul 17, 2024
@sean-mcmanus sean-mcmanus added this to the 1.22.1 milestone Aug 21, 2024
@browntarik browntarik added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Auto-complete fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
Status: Done
Development

No branches or pull requests

2 participants