microsoft / microsoft/vscode-cpptools

Coloring problem in the source files

Open
#12,019 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Colorization Language Service
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and Version: RedHat 8
  • VS Code Version: 1.86.2
  • C/C++ Extension Version: 1.19.4
  • If using SSH remote, specify OS of remote machine: RedHat 8
Bug Summary and Steps to Reproduce

Bug Summary:
The IDE colors different tokens with different colors, but sometimes it is totally messy, as tokens of the same type get colored in different ways, which is very confusing. See the picture attached.

Steps to reproduce:
Open a class where members are used in methods and experience the coloring problem.
Képernyőkép 2024-01-10 102623

Expected behavior:
Same words (tokens), same coloring.

Configuration and Logs

I was not able to find a c_cpp_properties.json except for the schema file. I think there are no appropriate logs regarding this issue.

Other Extensions

No response

Additional context

No response

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 reproducing the coloring problem in VS Code 1.86.2 with the C/C++ extension 1.19.4 on RedHat 8, using a class whose members are referenced in methods. Compare the inconsistent token colors shown in the attached screenshot and determine the relevant configuration or logs; done means same-type tokens receive consistent coloring.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.