rust-analyzer/crates/ide_completion/src
Alexandre Fourcat 9beefef8f9
Add completion for struct literal in which all fields are visible.
Fix ide_completion tests.

Move 'complete_record_literal' call to the main completion function.

Fix a rendering bug when snippet not available.

Checks if an expression is expected before adding completion for struct literal.

Move 'completion struct literal with private field' test to 'expressions.rs' test file.

Update 'expect' tests with new check in 'complete record literal'.
2021-08-04 18:52:58 +02:00
..
completions Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
render Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
tests Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
completions.rs Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
config.rs Add config setting for self-on-the-fly 2021-05-31 15:14:56 +02:00
context.rs Give TypeInfo fields and methods more appropriate names 2021-08-03 17:28:51 +02:00
item.rs add 'use' prefix for any auto-import 2021-07-20 18:35:19 +04:30
lib.rs Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
patterns.rs Simplify 2021-07-21 18:34:43 +02:00
render.rs Add completion for struct literal in which all fields are visible. 2021-08-04 18:52:58 +02:00
tests.rs Add a Union to the base item completion test fixture 2021-07-23 17:02:39 +02:00