[PATCH] D59817: [clangd] Add activate command to the vscode extension.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 27 08:43:10 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL357075: [clangd] Add activate command to the vscode extension. (authored by hokein, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59817/new/
https://reviews.llvm.org/D59817
Files:
clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json
clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
Index: clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json
===================================================================
--- clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json
+++ clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json
@@ -24,7 +24,8 @@
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:objective-c",
- "onLanguage:objective-cpp"
+ "onLanguage:objective-cpp",
+ "onCommand:clangd-vscode.activate"
],
"main": "./out/src/extension",
"scripts": {
@@ -81,6 +82,10 @@
{
"command": "clangd-vscode.switchheadersource",
"title": "Switch between Source/Header"
+ },
+ {
+ "command": "clangd-vscode.activate",
+ "title": "Manually activate clangd extension"
}
],
"keybindings": [
Index: clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
===================================================================
--- clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
+++ clang-tools-extra/trunk/clangd/clients/clangd-vscode/src/extension.ts
@@ -139,4 +139,8 @@
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 () => {}));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59817.192451.patch
Type: text/x-patch
Size: 1541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190327/bc1d502c/attachment-0001.bin>
More information about the cfe-commits
mailing list