rust-analyzer/crates/ide_completion/src
bors[bot] 7a17fb9c43
Merge #11444
11444: feat: Fix up syntax errors in attribute macro inputs to make completion work more often r=flodiebold a=flodiebold

This implements the "fix up syntax nodes" workaround mentioned in #11014. It isn't much more than a proof of concept; I have only implemented a few cases, but it already helps quite a bit.

Some notes:
 - I'm not super happy about how much the fixup procedure needs to interact with the syntax node -> token tree conversion code (e.g. needing to share the token map). This could maybe be simplified with some refactoring of that code.
 - It would maybe be nice to have the fixup procedure reuse or share information with the parser, though I'm not really sure how much that would actually help.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2022-02-12 12:48:46 +00:00
..
completions Fix trait impl completion ranges 2022-02-04 19:55:55 -06:00
render [ide_completion] render if a function is async/const/unsafe in completion details 2022-02-08 22:48:34 +00:00
tests Fix test 2022-02-08 20:44:46 +01:00
completions.rs Add abi string completions 2022-02-03 16:33:42 +01:00
config.rs Simplify 2021-10-11 21:49:50 +02:00
context.rs Simplify 2022-02-03 16:00:49 +01:00
item.rs feat: Deprioritize completions of private but editable definitions 2022-02-02 02:05:49 +01:00
lib.rs Add abi string completions 2022-02-03 16:33:42 +01:00
patterns.rs match_ast! takes a pattern to allow underscore usage 2021-12-14 12:44:31 +01:00
render.rs Cleanup PathCompletionContext qualifier handling 2022-02-03 15:52:03 +01:00
snippet.rs fix: Complete functions and methods from block level impls 2022-02-01 23:29:40 +01:00
tests.rs Remove CompletionKind in favor of CompletionItemKind 2021-10-27 17:23:43 +02:00