microsoft / microsoft/vscode-cpptools
Incorrect colorization of < > when calling templates.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Bug type: Language Service
Describe the bug
- OS and Version: macOS Big Sur 11.5.2 (20G95)
- VS Code Version: 1.59.1
- C/C++ Extension Version: 1.6.0
- Other extensions you installed (and if the issue persists after disabling them): It persists.
- If using SSH remote, specify OS of remote machine: No
- 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).
Angled brackets are recognised as comparison operators when calling templates and using an initializer list to initialise the variable (every variable declaration has this behaviour).
Steps to reproduce
Check screenshots.
Expected behavior
Code sample and logs Are logs necessary?
-
Code sample
-
Configurations in
c_cpp_properties.json -
Logs from running
C/C++: Log Diagnosticsfrom the VS Code command palette -
Logs from the language server logging
Screenshots

Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the issue screenshots and the C/C++ extension documentation linked in the report, then reproduce the template call on macOS Big Sur with VS Code 1.59.1 and extension 1.6.0. The report does not name a source file, test, code sample, or expected behavior, so identify the relevant language-service colorization entry point before defining completion as correct highlighting of angled brackets in template calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100