mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
SCM - show multi-line commit message in hover (#227538)
* SCM - show multi-line commit message in hover * Fix tests
This commit is contained in:
@@ -127,15 +127,12 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
|
||||
await ensureEmojis();
|
||||
|
||||
return commits.map(commit => {
|
||||
const newLineIndex = commit.message.indexOf('\n');
|
||||
const subject = newLineIndex !== -1 ? commit.message.substring(0, newLineIndex) : commit.message;
|
||||
|
||||
const labels = this.resolveHistoryItemLabels(commit);
|
||||
|
||||
return {
|
||||
id: commit.hash,
|
||||
parentIds: commit.parents,
|
||||
message: emojify(subject),
|
||||
message: emojify(commit.message),
|
||||
author: commit.authorName,
|
||||
icon: new ThemeIcon('git-commit'),
|
||||
displayId: commit.hash.substring(0, 8),
|
||||
|
||||
Reference in New Issue
Block a user