Browse Source

Adds avatars for GitHub remotes

main
Eric Amodio 2 years ago
parent
commit
eb162dbaba
2 changed files with 4 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +3
    -1
      src/views/nodes/remoteNode.ts

+ 1
- 0
CHANGELOG.md View File

@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- `${userHome}` — the path of the user's home folder
- `${workspaceFolder}` — the path of the folder opened in VS Code containing the specified repository
- `${workspaceFolderBasename}` — the name of the folder opened in VS Code containing the specified repository without any slashes (/)
- Adds owner avatars to remotes in the _Remotes_ view for GitHub remotes
### Changed

+ 3
- 1
src/views/nodes/remoteNode.ts View File

@ -116,7 +116,9 @@ export class RemoteNode extends ViewNode {
item.description = `${arrows}${GlyphChars.Space} ${provider.name} ${GlyphChars.Space}${GlyphChars.Dot}${GlyphChars.Space} ${provider.displayPath}`;
item.iconPath =
provider.icon === 'remote'
provider.avatarUri != null && this.view.config.avatars
? provider.avatarUri
: provider.icon === 'remote'
? new ThemeIcon('cloud')
: {
dark: this.view.container.context.asAbsolutePath(`images/dark/icon-${provider.icon}.svg`),

Loading…
Cancel
Save