language: Assert CodeLabel text ranges are correct (#40242)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-10-15 10:16:56 +00:00
committed by GitHub
parent b0b83ef5aa
commit 3882323f79
21 changed files with 246 additions and 290 deletions
+1 -5
View File
@@ -328,11 +328,7 @@ impl CompletionsMenu {
.map(|choice| Completion {
replace_range: selection.start.text_anchor..selection.end.text_anchor,
new_text: choice.to_string(),
label: CodeLabel {
text: choice.to_string(),
runs: Default::default(),
filter_range: Default::default(),
},
label: CodeLabel::plain(choice.to_string(), None),
icon_path: None,
documentation: None,
confirm: None,