mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 01:25:42 -05:00
Adds status icons to explorer views
Adds templating support to explorer views
This commit is contained in:
@@ -72,4 +72,19 @@ const statusOcticonsMap = {
|
||||
|
||||
export function getGitStatusOcticon(status: GitStatusFileStatus, missing: string = GlyphChars.Space.repeat(4)): string {
|
||||
return statusOcticonsMap[status] || missing;
|
||||
}
|
||||
|
||||
const statusIconsMap = {
|
||||
'!': 'icon-status-ignored.svg',
|
||||
'?': 'icon-status-untracked.svg',
|
||||
A: 'icon-status-added.svg',
|
||||
C: 'icon-status-copied.svg',
|
||||
D: 'icon-status-deleted.svg',
|
||||
M: 'icon-status-modified.svg',
|
||||
R: 'icon-status-renamed.svg',
|
||||
U: 'icon-status-conflict.svg'
|
||||
};
|
||||
|
||||
export function getGitStatusIcon(status: GitStatusFileStatus): string {
|
||||
return statusIconsMap[status];
|
||||
}
|
||||
Reference in New Issue
Block a user