microsoft / microsoft/vscode-cpptools
Coloring problem in the source files
Nobody has claimed this yet.
- 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.
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
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 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