rust-analyzer/crates/ide-completion/src/tests
Chayim Refael Friedman 779a7cb0e3 Automatically add semicolon when completing unit-returning functions
But provide a config to suppress that.

I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-08 23:41:16 +03:00
..
attribute.rs Complete exported macros in #[macro_use($0)] 2023-12-16 16:19:58 +00:00
expression.rs fix(completion): complete async keyword 2024-06-19 11:12:24 -07:00
flyimport.rs Automatically add semicolon when completing unit-returning functions 2024-09-08 23:41:16 +03:00
fn_param.rs fix: variants rendering in pattern path 2022-07-02 20:31:24 +09:00
item.rs feat: add space after specific keywords in completion 2024-06-16 17:28:53 +08:00
item_list.rs Complete desugared and resugared async fn in trait impls 2024-09-01 11:22:50 +02:00
pattern.rs tests: suggesting names in completions for let_stmt and fn_param 2024-09-03 05:23:04 +08:00
predicate.rs Show and render error lifetime args as '_ 2024-08-26 12:19:42 +03:00
proc_macros.rs feat: Add break and return postfix keyword completions 2024-02-08 14:56:10 +01:00
raw_identifiers.rs Automatically add semicolon when completing unit-returning functions 2024-09-08 23:41:16 +03:00
record.rs feat: add space after specific keywords in completion 2024-06-16 17:28:53 +08:00
special.rs Automatically add semicolon when completing unit-returning functions 2024-09-08 23:41:16 +03:00
type_pos.rs Show and render error lifetime args as '_ 2024-08-26 12:19:42 +03:00
use_tree.rs add use_tree_completion test 2024-01-18 17:35:01 +08:00
visibility.rs fix(completion): super:: completion at crate root and module depth 2022-07-14 17:07:43 +05:30