Skip to content

The Parameter hints does not suggest the best match #2206

Open

Description

@lh123

Type: LanguageService
----- Input information below -----

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: Win10
  • VS Code Version: 1.24.1
  • C/C++ Extension Version: 0.17.5
  • A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

class A {};
void func(A a);
void func(int a);

int main() {
    int a = 5;
    func(a);//  Parameter hints prompt 'void func(A a)' , but it should automatic display 'void func(int a)'
}

Activity

  1. changed the title [-]The Signature Help does not suggest the best match[/-] [+]The Parameter hints does not suggest the best match[/+] on Jun 29, 2018
  2. bobbrow commented on Jun 29, 2018

    @bobbrow
    Contributor

    There is currently no type deduction in parameter hints. The best we do right now is match the number of arguments when deciding which one to mark as the active one. This is the same behavior as Visual Studio 2017.

    The only difference right now is that VS Code doesn't let us know if you changed which overload you're looking at, so we don't have any control over how they reset the selected overload as you type. All extensions I've used suffer from that.

  3. added
    Feature: Doc comments
    Feature: Inlay Hint
    on Aug 24, 2020
  4. github-actions commented on Oct 24, 2020

    @github-actions

    This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.

  5. added
    more votes needed
    on Oct 24, 2020
  6. modified the milestones: Triage, Backlog on Oct 17, 2023
  7. removed
    more votes needed
    on Oct 17, 2023
  8. github-actions commented on Oct 17, 2023

    @github-actions

    This feature request has received enough votes to be added to our backlog.

  9. mrx23dot commented on Jul 11, 2024

    @mrx23dot

    Please implement this! Every programming language has parameters, most also have types, so this would benefit most users.
    similar to #12432

  10. removed
    Feature: Inlay Hint
    on Jun 26, 2025
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

    Feature RequestFeature: Doc commentsLanguage Service

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions