Skip to content

Commit

Permalink
Use VSCode's native inlay-hints support, now it's available. (clangd#301
Browse files Browse the repository at this point in the history
)

Use VSCode's native inlay-hints support, now it's available.
  • Loading branch information
sam-mccall authored Apr 1, 2022
1 parent de89c7d commit dc6518f
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 236 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 3 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"homepage": "https://clangd.llvm.org/",
"icon": "icon.png",
"engines": {
"vscode": "^1.56.0"
"vscode": "^1.65.0"
},
"categories": [
"Programming Languages",
Expand Down Expand Up @@ -53,7 +53,7 @@
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^6.0.40",
"@types/vscode": "1.56.*",
"@types/vscode": "1.65.0",
"clang-format": "1.6.0",
"esbuild": "^0.14.13",
"glob": "^7.1.4",
Expand Down Expand Up @@ -341,26 +341,6 @@
"when": "clangd.ast.hasData"
}
]
},
"colors": [
{
"id": "clangd.inlayHints.foreground",
"description": "Foreground color of inlay hints",
"defaults": {
"dark": "#A0A0A0F0",
"light": "#747474",
"highContrast": "#BEBEBE"
}
},
{
"id": "clangd.inlayHints.background",
"description": "Background color of inlay hints",
"defaults": {
"dark": "#11223300",
"light": "#11223300",
"highContrast": "#11223300"
}
}
]
}
}
}
2 changes: 1 addition & 1 deletion src/clangd-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as openConfig from './open-config';
import * as switchSourceHeader from './switch-source-header';
import * as typeHierarchy from './type-hierarchy';

const clangdDocumentSelector = [
export const clangdDocumentSelector = [
{scheme: 'file', language: 'c'},
{scheme: 'file', language: 'cpp'},
{scheme: 'file', language: 'cuda-cpp'},
Expand Down
Loading

0 comments on commit dc6518f

Please sign in to comment.