diff options
author | Lukas Wirth <[email protected]> | 2021-05-30 15:41:33 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-05-31 14:14:56 +0100 |
commit | fb7105a5801ab1d0ede830cd53bbc3ccbf0b5e2c (patch) | |
tree | 958c7a8548dcc6cfce25ace53476183d73b1460d /crates/ide_completion/src/completions | |
parent | 4507382f2e66cd0e6498228bfdffb16769063b0f (diff) |
Add config setting for self-on-the-fly
Diffstat (limited to 'crates/ide_completion/src/completions')
-rw-r--r-- | crates/ide_completion/src/completions/dot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/completions/dot.rs b/crates/ide_completion/src/completions/dot.rs index 886251639..302c9ccbd 100644 --- a/crates/ide_completion/src/completions/dot.rs +++ b/crates/ide_completion/src/completions/dot.rs | |||
@@ -30,7 +30,7 @@ pub(crate) fn complete_dot(acc: &mut Completions, ctx: &CompletionContext) { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | fn complete_undotted_self(acc: &mut Completions, ctx: &CompletionContext) { | 32 | fn complete_undotted_self(acc: &mut Completions, ctx: &CompletionContext) { |
33 | if !ctx.is_trivial_path { | 33 | if !ctx.is_trivial_path || !ctx.config.enable_self_on_the_fly { |
34 | return; | 34 | return; |
35 | } | 35 | } |
36 | ctx.scope.process_all_names(&mut |name, def| { | 36 | ctx.scope.process_all_names(&mut |name, def| { |