mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Git - do not add ellipsis to history item subject/timeline item label (#249086)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user