Skip to content

Commit

Permalink
[clangd] Track deprecation of 'member' semantic token type in LSP.
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mccall committed Nov 25, 2020
1 parent 9ffba19 commit cbf336a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang-tools-extra/clangd/SemanticHighlighting.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit cbf336a

Please sign in to comment.