[clangd][vscode] Surface the error when applying tweaks fails
authorHaojian Wu <hokein@google.com>
Wed, 14 Aug 2019 13:38:52 +0000 (13:38 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 14 Aug 2019 13:38:52 +0000 (13:38 +0000)
commitbcd4d59a148a6c3ba5b78941ba07f49562b47128
tree76a78df865f7b55010ba0f6120c0fbd3f3320cd8
parent36ca1e6399feaaee1e007bafa40449fecdba70aa
[clangd][vscode] Surface the error when applying tweaks fails

Summary:
The current behavior for a failed request is just to log it in the
output panel. When applyTweak fails for whatever reason, users usually don't get
informed (unless they open the output panel and dig the log).

this patch is to surface these errors by prompting up a message diag.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66211

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