[clangd] semanticTokens: fields are 'property', not 'member'

This isn't obvious, but vscode maps member as 'entity.name.function.member',
so it's really for member functions.

Fixes https://github.com/clangd/vscode-clangd/issues/105
This commit is contained in:
Sam McCall 2020-11-20 20:51:58 +01:00
parent c964f30814
commit de5b0b776f

View File

@ -561,7 +561,8 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
// FIXME: better function/member with static modifier?
return "function";
case HighlightingKind::Field:
return "member";
// Not "member": https://github.com/clangd/vscode-clangd/issues/105
return "property";
case HighlightingKind::Class:
return "class";
case HighlightingKind::Enum: