Summary:
This would help minizime the annoying part of not activating the extension
for .cu file.
Reviewers: ilya-biryukov
Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D59817
llvm-svn: 357075
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:objective-c",
- "onLanguage:objective-cpp"
+ "onLanguage:objective-cpp",
+ "onCommand:clangd-vscode.activate"
],
"main": "./out/src/extension",
"scripts": {
{
"command": "clangd-vscode.switchheadersource",
"title": "Switch between Source/Header"
+ },
+ {
+ "command": "clangd-vscode.activate",
+ "title": "Manually activate clangd extension"
}
],
"keybindings": [
status.clear();
}
})
+ // An empty place holder for the activate command, otherwise we'll get an
+ // "command is not registered" error.
+ context.subscriptions.push(vscode.commands.registerCommand(
+ 'clangd-vscode.activate', async () => {}));
}