We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4e695 commit 512c750Copy full SHA for 512c750
crates/emmylua_code_analysis/src/db_index/type/humanize_type.rs
@@ -210,14 +210,9 @@ where
210
type_strings.push(type_str);
211
}
212
213
- // 取指定数量的类型
+ let dots = if type_strings.len() > num { "..." } else { "" };
214
let display_types: Vec<_> = type_strings.into_iter().take(num).collect();
215
let type_str = display_types.join("|");
216
- let dots = if display_types.len() < types.len() {
217
- "..."
218
- } else {
219
- ""
220
- };
221
222
if display_types.len() == 1 {
223
if has_function && has_nil {
0 commit comments