rust-analyzer/crates/ide_completion/src
bors[bot] c409cf0e26
Merge #10458
10458: feat: Implement custom user snippets r=Veykril a=Veykril

![Y24dX7fOWX](https://user-images.githubusercontent.com/3757771/136059454-ceccfc2c-2c90-46da-8ad1-bac9c2e83ec1.gif)

Allows us to address the following issues:
    - `.arc / .rc / .pin, similar to .box?` https://github.com/rust-analyzer/rust-analyzer/issues/7033
    - `Add unsafe snippet` https://github.com/rust-analyzer/rust-analyzer/issues/10392, would allow users to have this without the diagnostic)
    - `.ok() postfix snippet is annoying` https://github.com/rust-analyzer/rust-analyzer/issues/9636, allows us to get rid of the `ok` postfix and similar ones
    - `Postfix vec completion` https://github.com/rust-analyzer/rust-analyzer/issues/7773

cc https://github.com/rust-analyzer/rust-analyzer/issues/772

Zulipd discussion: https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Custom.20Postfix.20snippets

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-10-05 16:41:11 +00:00
..
completions Render the expansion of snippets as their docs 2021-10-05 18:11:22 +02:00
render Merge #10458 2021-10-05 16:41:11 +00:00
tests Add pub(super) along with pub(crate) and pub as a completion keyword 2021-09-29 21:55:15 -07:00
completions.rs Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
config.rs Bring the implementation closer to VSCode snippet definitions 2021-10-05 17:18:40 +02:00
context.rs Merge #10458 2021-10-05 16:41:11 +00:00
item.rs Make multiple import edits work for completions 2021-10-04 21:44:33 +02:00
lib.rs Bring the implementation closer to VSCode snippet definitions 2021-10-05 17:18:40 +02:00
patterns.rs Don't show flyimport completions in use renames 2021-09-30 18:15:55 +02:00
render.rs Make multiple import edits work for completions 2021-10-04 21:44:33 +02:00
snippet.rs Bring the implementation closer to VSCode snippet definitions 2021-10-05 17:18:40 +02:00
tests.rs Bring the implementation closer to VSCode snippet definitions 2021-10-05 17:18:40 +02:00