Skip to content

Signature Help: cannot correctly underline template argument #4786

@saoaix

Description

@saoaix

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10 2004
  • VS Code Version: 1.41.0
  • C/C++ Extension Version: 0.26.3-insiders2
  • Other extensions you installed (and if the issue persists after disabling them): python
  • A clear and concise description of what the bug is.
    If the first template argument is a pair, intellisense seems to skip the next argument.

To Reproduce

  1. open a new file
  2. populate with
#include <queue>
#include <utility>

using namespace std;

int main()
{
    return 0;
}
  1. before line "return 0", start a new line with "priority_queue<pair<int, int>"
  2. IntelliSense says I'm going to input _Sequence
  3. append ", "
  4. IntelliSense says I'm going to input _compare, however I'm going to input _Sequence.

Expected behavior

IntelliSense should probably underline _Sequence for me.
Screenshots

image

Additional context

I tried:
testing in windows with Mingw gcc 8.2.0
testing in WSL with gcc 9.2.1
both observes the issue.

Metadata

Metadata

Assignees

Labels

Feature: Signature HelpLanguage ServiceWorks in VSSo we'd need to fix it for VS Code to reach parity.bugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions