hanchenye-llvm-project/clang-tools-extra/test/clangd
Ilya Biryukov 49c1071394 [clangd] Send empty diagnostics when a file is closed
Summary:
The LSP clients cannot know clangd will not send diagnostic updates
for closed files, so we send them an empty list of diagnostics to
avoid showing stale diagnostics for closed files in the UI, e.g. in the
"Problems" pane of VSCode.

Fixes PR41217.

Reviewers: hokein

Reviewed By: hokein

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

Tags: #clang

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

llvm-svn: 356880
2019-03-25 10:15:11 +00:00
..
Inputs [clangd] Fix a lit-test. 2019-02-12 16:54:47 +00:00
xpc [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
background-index.test [clangd] Store index in '.clangd/index' instead of '.clangd-index' 2019-02-20 19:08:06 +00:00
compile-commands-path-in-initialize.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
completion-auto-trigger.test [clangd] Check preceding char when completion triggers on ':' or '>' 2019-01-03 13:37:12 +00:00
completion-snippets.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
completion.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
crash-non-added-files.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
delimited-input-comment-at-the-end.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
diagnostic-category.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
diagnostics.test [clangd] Send empty diagnostics when a file is closed 2019-03-25 10:15:11 +00:00
did-change-configuration-params.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
execute-command.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
exit-with-shutdown.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
exit-without-shutdown.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
filestatus.test [clangd] Expose FileStatus to LSP. 2018-12-20 15:39:12 +00:00
fixits-codeaction.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
fixits-command.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
fixits-embed-in-diagnostic.test [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
formatting.test [clangd][tests] Fix typo in tests - invalid LSP exit message 2018-08-15 15:50:45 +00:00
hover.test [clangd] Hover should return null when not hovering over anything. 2018-06-04 10:37:16 +00:00
index-tools.test Revert "[clang-tools-extra] r347753 - [clangd] Build and test IndexBenchmark in check-clangd" 2018-11-28 18:48:32 +00:00
initialize-params-invalid.test [clangd] Add xrefs LSP boilerplate implementation. 2018-09-05 11:53:07 +00:00
initialize-params.test [clangd] Add support for type hierarchy (super types only for now) 2019-03-19 09:27:04 +00:00
initialize-sequence.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
input-mirror.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
lit.local.cfg [clangd] Revert broken r318329 and disable tests on PS4 2017-11-15 21:33:56 +00:00
protocol.test [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
references.test [clangd] Fix references.test assertions 2018-09-05 13:17:51 +00:00
rename.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
signature-help.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
spaces-in-delimited-input.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
symbol-info.test [clangd] textDocument/SymbolInfo extension 2018-11-27 16:40:46 +00:00
symbols.test [clangd] Cleanup: use index file instead of header in workspace symbols lit test. 2018-11-22 14:59:22 +00:00
test-uri-posix.test [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
test-uri-windows.test [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
textdocument-didchange-fail.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
too_large.test [clangd] Rewrite JSON dispatcher loop using C IO (FILE*) instead of std::istream. 2018-06-05 09:34:46 +00:00
trace.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
tweaks-format.test Revamp the "[clangd] Format tweak's replacements" 2019-02-11 15:18:11 +00:00
type-hierarchy.test [clangd] Add support for type hierarchy (super types only for now) 2019-03-19 09:27:04 +00:00
unsupported-method.test [clangd][tests] Fix typo in tests - invalid LSP exit message 2018-08-15 15:50:45 +00:00
xrefs.test [Clangd] textDocument/definition and textDocument/declaration "bounce" between definition and declaration location when they are distinct. 2019-02-02 05:56:00 +00:00