task: Always use untruncated label if it is short (#23611)
Also changed rust tasks to be less mouthful. Release Notes: - Shortened Rust task labels. - Task modal will now use full task label when it does not require truncation.
This commit is contained in:
@@ -791,7 +791,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
task_names(&tasks_picker, cx),
|
||||
vec![
|
||||
"hello from …h.odd_extension:1:1".to_string(),
|
||||
"hello from /dir/file_with.odd_extension:1:1".to_string(),
|
||||
"opened now: /dir".to_string()
|
||||
],
|
||||
"Second opened buffer should fill the context, labels should be trimmed if long enough"
|
||||
@@ -820,7 +820,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
task_names(&tasks_picker, cx),
|
||||
vec![
|
||||
"hello from …thout_extension:2:3".to_string(),
|
||||
"hello from /dir/file_without_extension:2:3".to_string(),
|
||||
"opened now: /dir".to_string()
|
||||
],
|
||||
"Opened buffer should fill the context, labels should be trimmed if long enough"
|
||||
|
||||
Reference in New Issue
Block a user