llvm-project/clang-tools-extra/test/clangd
Ilya Biryukov cce67a32cf [clangd] Interfaces for writing code tweaks
Summary:
The code tweaks are an implementation of mini-refactorings exposed
via the LSP code actions. They run in two stages:
  - Stage 1. Decides whether the action is available to the user and
    collects all the information required to finish the action.
    Should be cheap, since this will run over all the actions known to
    clangd on each textDocument/codeAction request from the client.

  - Stage 2. Uses information from stage 1 to produce the actual edits
    that the code action should perform. This stage can be expensive and
    will only run if the user chooses to perform the specified action in
    the UI.

One unfortunate consequence of this change is increased latency of
processing the textDocument/codeAction requests, which now wait for an
AST. However, we cannot avoid this with what we have available in the LSP
today.

Reviewers: kadircet, ioeric, hokein, sammccall

Reviewed By: sammccall

Subscribers: mgrang, mgorny, MaskRay, jkorous, arphaman, cfe-commits

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

llvm-svn: 352494
2019-01-29 14:17:36 +00:00
..
Inputs [clangd] Recommit the "AnyScope" changes in requests.json by rCTE347753 (reverted by rCTE347792) 2018-12-01 01:57:15 +00:00
xpc [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
background-index.test [clangd] Introduce loading of shards within auto-index 2019-01-10 17:03:04 +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] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
diagnostics.test [clangd] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
did-change-configuration-params.test [clangd] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
execute-command.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +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] Send CodeAction responses to textDocument/codeAction (LSP 3.8) 2018-10-16 16:29:41 +00:00
fixits-command.test [clangd] Interfaces for writing code tweaks 2019-01-29 14:17:36 +00:00
fixits-embed-in-diagnostic.test [clangd] Embed fixes as CodeAction, instead of clangd_fixes. Clean up serialization. 2018-10-24 07:59:38 +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] Interfaces for writing code tweaks 2019-01-29 14:17:36 +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
unsupported-method.test [clangd][tests] Fix typo in tests - invalid LSP exit message 2018-08-15 15:50:45 +00:00
xrefs.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00