rust/crates/ide_completion/src/render
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
..
builder_ext.rs Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
const_.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
enum_variant.rs Make multiple import edits work for completions 2021-10-04 21:44:33 +02:00
function.rs Merge #10458 2021-10-05 16:41:11 +00:00
macro_.rs Make multiple import edits work for completions 2021-10-04 21:44:33 +02:00
pattern.rs Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
struct_literal.rs Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
type_alias.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00