rust-analyzer/crates/hir/src
bors 65eda41e65 Auto merge of #17021 - roife:add-hover-limits-for-adts, r=Veykril
Support hovering limits for adts

Fix #17009

1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'.
2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type.
3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
2024-04-25 07:23:27 +00:00
..
semantics Allow rust files to be used linkedProjects 2024-04-21 16:26:55 +02:00
term_search chore: remove repetitive words 2024-03-19 22:14:13 +08:00
attrs.rs fix: Ignore generic arguments in intra doc link path resolution 2024-02-28 14:47:47 +01:00
db.rs Update per_query_memory_usage query listing 2024-04-17 18:44:50 +02:00
diagnostics.rs different error code based on variant 2024-04-23 20:54:03 +08:00
display.rs fix: remove space within {} when no fields in struct 2024-04-20 10:07:33 +08:00
from_id.rs Eagerly lower enum variants in CrateDefMap construction 2024-01-15 10:24:14 +01:00
has_source.rs internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
lib.rs chore: fix a few spans without .entered() 2024-04-17 12:44:49 -04:00
semantics.rs Render matched macro arm on hover of macro calls 2024-04-18 10:51:58 +02:00
source_analyzer.rs internal: Treat the self param as different from patterns when lowering 2024-03-11 09:46:28 +01:00
symbols.rs internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
term_search.rs Add make_tuple tactic 2024-02-26 20:17:09 +02:00