Skip to content

Commit

Permalink
Remove legacy semantic-highlighting client code.
Browse files Browse the repository at this point in the history
The legacy semantic-highlighting support has been dropped since
clangd13.
  • Loading branch information
hokein committed Jan 7, 2022
1 parent eea4025 commit a117c2f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 582 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
"clangd.semanticHighlighting": {
"type": "boolean",
"default": true,
"description": "Enable semantic highlighting in clangd."
"description": "Enable semantic highlighting in clangd.",
"deprecationMessage": "Legacy semanticHighlights is no longer supported. Please use `editor.semanticHighlighting.enabled` instead."
},
"clangd.fallbackFlags": {
"type": "array",
Expand Down
3 changes: 0 additions & 3 deletions src/clangd-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as inlayHints from './inlay-hints';
import * as install from './install';
import * as memoryUsage from './memory-usage';
import * as openConfig from './open-config';
import * as semanticHighlighting from './semantic-highlighting';
import * as switchSourceHeader from './switch-source-header';
import * as typeHierarchy from './type-hierarchy';

Expand Down Expand Up @@ -151,8 +150,6 @@ export class ClangdContext implements vscode.Disposable {
this.client.createDefaultErrorHandler(
// max restart count
config.get<boolean>('restartAfterCrash') ? /*default*/ 4 : 0);
if (config.get<boolean>('semanticHighlighting'))
semanticHighlighting.activate(this);
this.client.registerFeature(new EnableEditsNearCursorFeature);
typeHierarchy.activate(this);
inlayHints.activate(this);
Expand Down
Loading

0 comments on commit a117c2f

Please sign in to comment.