summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd/clients
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-11-30 09:14:52 +0000
committerHaojian Wu <hokein@google.com>2018-11-30 09:14:52 +0000
commit3c58665ffc14dd40761b771161f4ede281905585 (patch)
tree7aac603bf6234ae316bde6b59115c1eaf6034750 /clang-tools-extra/clangd/clients
parenta6a185b1e32b5c97526f3e60f0084daf0ea0fb53 (diff)
[clangd] Fix junk output in clangd vscode plugin
Summary: When using the vscode clangd plugin, lots and lots of junk output is printed to the output window, which constantly reopens itself. Example output: I[11:13:17.733] <-- textDocument/codeAction(4) I[11:13:17.733] --> reply:textDocument/codeAction(4) 0 ms I[11:13:17.937] <-- textDocument/codeAction(5) I[11:13:17.937] --> reply:textDocument/codeAction(5) 0 ms I[11:13:18.557] <-- textDocument/hover(6) I[11:13:18.606] --> reply:textDocument/hover(6) 48 ms This should prevent that from happening. Patch by James Findley! Reviewers: ioeric, ilya-biryukov, hokein Reviewed By: ioeric Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D55052
Diffstat (limited to 'clang-tools-extra/clangd/clients')
-rw-r--r--clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts b/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
index 2706da703b6..1191bb47db3 100644
--- a/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
+++ b/clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
@@ -54,7 +54,9 @@ export function activate(context: vscode.ExtensionContext) {
code2Protocol: (value: vscode.Uri) => value.toString(),
protocol2Code: (value: string) =>
vscode.Uri.file(realpathSync(vscode.Uri.parse(value).fsPath))
- }
+ },
+ // Do not switch to output window when clangd returns output
+ revealOutputChannelOn: vscodelc.RevealOutputChannelOn.Never
};
const clangdClient = new vscodelc.LanguageClient('Clang Language Server', serverOptions, clientOptions);