[clangd] Fix junk output in clangd vscode plugin
authorHaojian Wu <hokein@google.com>
Fri, 30 Nov 2018 09:14:52 +0000 (09:14 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 30 Nov 2018 09:14:52 +0000 (09:14 +0000)
commita5f6a9388973b438b6ac333521b89a9b049bd55c
tree6151f68786895afd529f90352cc84081b64a82f6
parenta2133061c01506cace7a365f29e373bae8769639
[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

llvm-svn: 347968
clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts