[clangd] Track deprecation of 'member' semantic token type in LSP.

This commit is contained in:
Sam McCall 2020-11-25 21:31:18 +01:00
parent 9ffba19e86
commit cbf336ad76
1 changed files with 2 additions and 3 deletions

View File

@ -556,12 +556,11 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
case HighlightingKind::Function:
return "function";
case HighlightingKind::Method:
return "member";
return "method";
case HighlightingKind::StaticMethod:
// FIXME: better function/member with static modifier?
// FIXME: better method with static modifier?
return "function";
case HighlightingKind::Field:
// Not "member": https://github.com/clangd/vscode-clangd/issues/105
return "property";
case HighlightingKind::Class:
return "class";