diff options
author | Lukas Wirth <[email protected]> | 2021-06-21 14:14:28 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-21 14:14:28 +0100 |
commit | 0729913525a55cad3ffe9876c1eb05f7b880d22d (patch) | |
tree | 7ce7b744bb168f245f201a95b19b584479d93eda /crates/ide_completion/src/context.rs | |
parent | b9d85f55b7a0a2159971b42bb5dae71efbfeada4 (diff) |
Various keyword completion fixes
Diffstat (limited to 'crates/ide_completion/src/context.rs')
-rw-r--r-- | crates/ide_completion/src/context.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index e49e434fa..4814bd64d 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -286,8 +286,11 @@ impl<'a> CompletionContext<'a> { | |||
286 | ) | 286 | ) |
287 | } | 287 | } |
288 | 288 | ||
289 | pub(crate) fn expect_record_field(&self) -> bool { | 289 | pub(crate) fn expect_field(&self) -> bool { |
290 | matches!(self.completion_location, Some(ImmediateLocation::RecordField)) | 290 | matches!( |
291 | self.completion_location, | ||
292 | Some(ImmediateLocation::RecordField | ImmediateLocation::TupleField) | ||
293 | ) | ||
291 | } | 294 | } |
292 | 295 | ||
293 | pub(crate) fn in_use_tree(&self) -> bool { | 296 | pub(crate) fn in_use_tree(&self) -> bool { |