Skip to content

Semantic colorization should distinguish between declaration and use #6013

@GrayJack

Description

@GrayJack

Type: LanguageService

  • OS and Version: Linux 5.9.X
  • VS Code Version: 1.48.0
  • C/C++ Extension Version: 0.30.0-insiders3
  • Other extensions you installed (and if the issue persists after disabling them): None related to C/C++
  • Does this issue involve using SSH remote to run the extension on a remote machine?: No

I got myself wanting in my theme to give a color only to the parameter definition of functions while it's usage continuing to be colored the same way as any variable. I could my wanted results with Rust, Java and TypeScript because in the functions definitions the parameters receive a modifiers (definition/decleration or something similar)

Steps to reproduce

  1. Write a function definition that takes parameters in C/C++
  2. Open Inspect Editor Tokens and Scopes
  3. Check the token for the parameter in the function definiton and it's header
  4. See that in the definitions there is no modifier

Example
In this image, in the function definition the parameter doesn't have a modifier
image

This image show the usage. Here it's "correct", only parameter, without modifier
image

Expected behavior
The parameter in the function definition having a modifier.

Java example
image

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions