microsoft / microsoft/vscode-cpptools

Incorrect colorization of < > when calling templates.

Open
#8,061 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Feature: Colorization Language Service
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 Diagnostics from the VS Code command palette

  • Logs from the language server logging

Screenshots
Screenshot 2021-08-26 at 14 05 38

Screenshot 2021-08-26 at 14 05 59

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.