MaskRay / vscode-ccls

ccls plugin for Visual Studio Code
123 stars 37 forks source link

Semantic highlighting color setting? #71

Closed mkitby closed 5 years ago

mkitby commented 5 years ago

I enable the Semantic highlighting according to https://github.com/MaskRay/ccls/wiki/Visual-Studio-Code, but seems the highlight color is random, it shows different color even if the symbol is the same

"ccls.highlighting.enabled.types": true,
"ccls.highlighting.enabled.freeStandingFunctions": true,
"ccls.highlighting.enabled.memberFunctions": true,
"ccls.highlighting.enabled.freeStandingVariables": true,
"ccls.highlighting.enabled.memberVariables": true,
"ccls.highlighting.enabled.namespaces": true,
"ccls.highlighting.enabled.macros": true,
"ccls.highlighting.enabled.enums": true,
"ccls.highlighting.enabled.typeAliases": true,
"ccls.highlighting.enabled.enumConstants": true,
"ccls.highlighting.enabled.staticMemberFunctions": true,
"ccls.highlighting.enabled.parameters": true,
"ccls.highlighting.enabled.templateParameters": true,
"ccls.highlighting.enabled.staticMemberVariables": true,
"ccls.highlighting.enabled.globalVariables": true,

"C_Cpp.autocomplete": "Disabled",
"C_Cpp.formatting": "Disabled",
"C_Cpp.errorSquiggles": "Disabled",
"C_Cpp.intelliSenseEngine": "Disabled",

Macro definition,

image

Function call, image

findNextStep commented 5 years ago

set ccls.highlighting.colors.*work for me if you use auto complete to create the setting, you can see why It`s random you can see my setting in here