Git - do not add ellipsis to history item subject/timeline item label (#249086)

This commit is contained in:
Ladislau Szomoru
2025-05-16 09:54:40 +00:00
committed by GitHub
parent 548a600daa
commit 84fb005bbd
2 changed files with 2 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
const newLineIndex = message.indexOf('\n');
const subject = newLineIndex !== -1
? `${truncate(message, newLineIndex)}`
? `${truncate(message, newLineIndex, false)}`
: message;
const avatarUrl = commitAvatars?.get(commit.hash);

View File

@@ -35,7 +35,7 @@ export class GitTimelineItem extends TimelineItem {
contextValue: string
) {
const index = message.indexOf('\n');
const label = index !== -1 ? `${truncate(message, index)}` : message;
const label = index !== -1 ? `${truncate(message, index, false)}` : message;
super(label, timestamp);