llvm-project/clang-tools-extra/test/clangd
Eric Liu 8f3678dbab [clangd] UI for completion items that would trigger include insertion.
Summary:
For completion items that would trigger include insertions (i.e. index symbols
that are not #included yet), add a visual indicator "+" before the completion
label. The inserted headers will appear in the completion detail.

Open to suggestions for better visual indicators; "+" was picked because it
seems cleaner than a few other candidates I've tried (*, #, @ ...).

The displayed header would be like a/b/c.h (without quote) or <vector> for system
headers. I didn't add quotation or "#include" because they can take up limited
space and do not provide additional information after users know what the
headers are. I think a header alone should be obvious for users to infer that
this is an include header..

To align indentation, also prepend ' ' to labels of candidates that would not
trigger include insertions (only for completions where index results are
possible).

Vim:
{F6357587}

vscode:
{F6357589}
{F6357591}

Reviewers: sammccall, ilya-biryukov, hokein

Reviewed By: sammccall

Subscribers: MaskRay, jkorous, cfe-commits

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

llvm-svn: 334828
2018-06-15 13:34:18 +00:00
..
Inputs [clangd] Commit a heinous crime to make test hermetic and not depend on the standard library being around. 2018-04-24 18:40:44 +00:00
completion-snippets.test [clangd] UI for completion items that would trigger include insertion. 2018-06-15 13:34:18 +00:00
completion.test [clangd] UI for completion items that would trigger include insertion. 2018-06-15 13:34:18 +00:00
crash-non-added-files.test [clangd] Try to fix failures on clang-x64-ninja-win7 build bot. 2018-02-28 20:31:00 +00:00
delimited-input-comment-at-the-end.test [clangd][tests] Fix handling of EOF in delimited input 2018-04-23 15:55:07 +00:00
diagnostics.test [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
execute-command.test [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
extra-flags.test [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
fixits.test [clangd] Revamp handling of diagnostics. 2018-03-12 15:28:22 +00:00
formatting.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
hover.test [clangd] Hover should return null when not hovering over anything. 2018-06-04 10:37:16 +00:00
initialize-params-invalid.test [clangd] Remove LSP command-based #include insertion. 2018-05-15 15:23:53 +00:00
initialize-params.test [clangd] Remove LSP command-based #include insertion. 2018-05-15 15:23:53 +00:00
input-mirror.test [clangd] Cut input-mirror.test down to size. NFC 2018-02-06 10:51:22 +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] UI for completion items that would trigger include insertion. 2018-06-15 13:34:18 +00:00
rename.test [clangd] Fix unicode handling, using UTF-16 where LSP requires it. 2018-04-27 11:59:28 +00:00
shutdown-with-exit.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
shutdown-without-exit.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
signature-help.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
spaces-in-delimited-input.test [clangd][tests] Fix delimiter handling 2018-04-23 15:58:42 +00:00
symbols.test [clangd] Commit a heinous crime to make test hermetic and not depend on the standard library being around. 2018-04-24 18:40:44 +00:00
test-uri-posix.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
test-uri-windows.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
textdocument-didchange-fail.test Attempt to fix clangd test on Windows by wildcarding drive letters 2018-03-27 17:44:12 +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] Keep only a limited number of idle ASTs in memory 2018-06-01 10:08:43 +00:00
unsupported-method.test [clangd] Support simpler JSON-RPC stream parsing for lit tests. 2018-02-06 10:47:30 +00:00
xrefs.test [clangd] Fix failing lit test. 2018-03-09 14:16:46 +00:00