mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Git - limit the timeline/blame/graph hover commands (#271530)
This commit is contained in:
@@ -626,7 +626,9 @@ export function processHistoryItemRemoteHoverCommands(commands: Command[], hash:
|
||||
|
||||
export function getHistoryItemHover(authorAvatar: string | undefined, authorName: string | undefined, authorEmail: string | undefined, authorDate: Date | number | undefined, message: string, shortStats: CommitShortStat | undefined, commands: Command[][] | undefined): MarkdownString {
|
||||
const markdownString = new MarkdownString('', true);
|
||||
markdownString.isTrusted = true;
|
||||
markdownString.isTrusted = {
|
||||
enabledCommands: commands?.flat().map(c => c.command) ?? []
|
||||
};
|
||||
|
||||
if (authorName) {
|
||||
const avatar = authorAvatar ? `` : '$(account)';
|
||||
|
||||
Reference in New Issue
Block a user