Skip to content

Commit 84fb005

Browse files
authored
Git - do not add ellipsis to history item subject/timeline item label (microsoft#249086)
1 parent 548a600 commit 84fb005

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/git/src/historyProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
284284

285285
const newLineIndex = message.indexOf('\n');
286286
const subject = newLineIndex !== -1
287-
? `${truncate(message, newLineIndex)}`
287+
? `${truncate(message, newLineIndex, false)}`
288288
: message;
289289

290290
const avatarUrl = commitAvatars?.get(commit.hash);

extensions/git/src/timelineProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class GitTimelineItem extends TimelineItem {
3535
contextValue: string
3636
) {
3737
const index = message.indexOf('\n');
38-
const label = index !== -1 ? `${truncate(message, index)}` : message;
38+
const label = index !== -1 ? `${truncate(message, index, false)}` : message;
3939

4040
super(label, timestamp);
4141

0 commit comments

Comments
 (0)