jfindley created this revision. jfindley added a reviewer: ioeric. jfindley added a project: clang-tools-extra. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov.
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. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D55052 Files: clangd/clients/clangd-vscode/src/extension.ts Index: clangd/clients/clangd-vscode/src/extension.ts =================================================================== --- clangd/clients/clangd-vscode/src/extension.ts +++ clangd/clients/clangd-vscode/src/extension.ts @@ -54,7 +54,9 @@ code2Protocol: (value: vscode.Uri) => value.toString(), protocol2Code: (value: string) => vscode.Uri.file(realpathSync(vscode.Uri.parse(value).fsPath)) - } + }, + // Avoid lots of junk in output + revealOutputChannelOn: vscodelc.RevealOutputChannelOn.Never }; const clangdClient = new vscodelc.LanguageClient('Clang Language Server', serverOptions, clientOptions);
Index: clangd/clients/clangd-vscode/src/extension.ts =================================================================== --- clangd/clients/clangd-vscode/src/extension.ts +++ clangd/clients/clangd-vscode/src/extension.ts @@ -54,7 +54,9 @@ code2Protocol: (value: vscode.Uri) => value.toString(), protocol2Code: (value: string) => vscode.Uri.file(realpathSync(vscode.Uri.parse(value).fsPath)) - } + }, + // Avoid lots of junk in output + revealOutputChannelOn: vscodelc.RevealOutputChannelOn.Never }; const clangdClient = new vscodelc.LanguageClient('Clang Language Server', serverOptions, clientOptions);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits