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

Inlay hint parameter match filtering can stop working when a lambda with a for loop is passed to a function #9619

Open
sean-mcmanus opened this issue Jul 21, 2022 · 0 comments
Labels
bug Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. Language Service Works in VS So we'd need to fix it for VS Code to reach parity.
Milestone

Comments

@sean-mcmanus
Copy link
Collaborator

Environment

  • OS and Version:
  • VS Code Version:
  • C/C++ Extension Version:
  • Other extensions you installed (and if the issue persists after disabling them):
  • If using SSH remote, specify OS of remote machine:
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).

Bug Summary and Steps to Reproduce

The filtering out of parameters with matching names doesn't work with the repro code (j inlay hint is still shown).

Expected behavior

No response

Code sample and Logs

#include <functional>

int func(int i, std::function<void()> f, int j)
{
    int i, j;
    func(i,
        []{
        for(int i = 0; i < 10; ++i){}
        },
        j);
}

Screenshots

No response

Additional context

No response

@sean-mcmanus sean-mcmanus added bug Language Service Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. Works in VS So we'd need to fix it for VS Code to reach parity. labels Jul 21, 2022
@Colengms Colengms added this to the Backlog milestone Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Feature: Inlay Hint An issue related to inlay hints for declarations and parameters. Language Service Works in VS So we'd need to fix it for VS Code to reach parity.
Projects
None yet
Development

No branches or pull requests

2 participants