Skip to content

Commit

Permalink
Move to vscode builtin cuda-cpp language (clangd#259)
Browse files Browse the repository at this point in the history
cloudhan authored Nov 29, 2021
1 parent d04848d commit b768b01
Showing 3 changed files with 8 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"homepage": "https://clangd.llvm.org/",
"icon": "icon.png",
"engines": {
"vscode": "^1.52.0"
"vscode": "^1.56.0"
},
"categories": [
"Programming Languages",
@@ -25,7 +25,7 @@
"activationEvents": [
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:cuda",
"onLanguage:cuda-cpp",
"onLanguage:objective-c",
"onLanguage:objective-cpp",
"onCommand:clangd.activate",
@@ -54,7 +54,7 @@
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^6.0.40",
"@types/vscode": "1.52.*",
"@types/vscode": "1.56.*",
"clang-format": "1.4.0",
"glob": "^7.1.4",
"mocha": "^9.1.3",
@@ -77,13 +77,6 @@
"**/MSVC/*/include/**"
],
"firstLine": "^/[/*].*-\\*-\\s*C\\+\\+\\s*-\\*-.*"
},
{
"id": "cuda",
"extensions": [
".cu",
".cuh"
]
}
],
"configuration": {
@@ -269,7 +262,7 @@
},
{
"command": "clangd.switchheadersource",
"when": "resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda || resourceLangId == objective-c || resourceLangId == objective-cpp",
"when": "resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda-cpp || resourceLangId == objective-c || resourceLangId == objective-cpp",
"group": "0_navigation@5"
},
{
3 changes: 1 addition & 2 deletions src/clangd-context.ts
Original file line number Diff line number Diff line change
@@ -16,8 +16,7 @@ import * as typeHierarchy from './type-hierarchy';
const clangdDocumentSelector = [
{scheme: 'file', language: 'c'},
{scheme: 'file', language: 'cpp'},
// CUDA is not supported by vscode, but our extension does supports it.
{scheme: 'file', language: 'cuda'},
{scheme: 'file', language: 'cuda-cpp'},
{scheme: 'file', language: 'objective-c'},
{scheme: 'file', language: 'objective-cpp'},
];

0 comments on commit b768b01

Please sign in to comment.