rust-analyzer/crates/ide-completion/src
Chayim Refael Friedman a02a1afc92 Allow flyimporting excluded trait items if there is an exact match in the name
I.e. with `fn foo()`, don't complete at `x.fo|`, but complete (with imports) for `x.foo|`, since this is less likely to have false positives.

I opted to only do that for flyimport, even though for basic imports there can also be snippet completion (completing the params list for a method), since this is less universally applicable and seems not so useful.
2025-01-01 13:54:23 +01:00
..
completions Allow flyimporting excluded trait items if there is an exact match in the name 2025-01-01 13:54:23 +01:00
context Fix a case where completion was unable to expand a macro 2024-12-20 13:14:59 +02:00
render Extract logic to decide how to complete semicolon for unit-returning function into CompletionContext 2024-09-18 14:07:23 +03:00
tests Allow flyimporting excluded trait items if there is an exact match in the name 2025-01-01 13:54:23 +01:00
completions.rs feat: suggest name in let_stmt and fn_param 2024-09-03 05:22:55 +08:00
config.rs Allow excluding specific traits from completion 2025-01-01 13:49:35 +01:00
context.rs Allow excluding specific traits from completion 2025-01-01 13:49:35 +01:00
item.rs internal: Cleanup label structure of CompletionItem 2024-12-18 13:37:21 +01:00
lib.rs Allow excluding specific traits from completion 2025-01-01 13:49:35 +01:00
render.rs internal: Cleanup label structure of CompletionItem 2024-12-18 13:37:21 +01:00
snippet.rs fix: Fix find_path not respecting non-std preference config correctly 2024-08-10 10:32:10 +02:00
tests.rs Allow excluding specific traits from completion 2025-01-01 13:49:35 +01:00