Browse Source

Adds reset avatar cache command

main
Eric Amodio 4 years ago
parent
commit
dab25a37f0
5 changed files with 27 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +10
    -0
      package.json
  3. +1
    -0
      src/commands.ts
  4. +1
    -0
      src/commands/common.ts
  5. +14
    -0
      src/commands/resetAvatarCache.ts

+ 1
- 0
CHANGELOG.md View File

@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- _Toggles the file changes from the commit_
- Adds _Publish Repository_ command (`gitlens.publishRepository`) to publish the repository to a remote provider
- Adds supported remote types in README — thanks to [PR #1371](https://github.com/eamodio/vscode-gitlens/pull/1371) by Vladislav Guleaev ([@vguleaev](https://github.com/vguleaev))
- Adds a new _Reset Avatar Cache_ command (`gitlens.resetAvatarCache`) to clear the avatar cache
### Changed

+ 10
- 0
package.json View File

@ -179,6 +179,7 @@
"onCommand:gitlens.stashSaveFiles",
"onCommand:gitlens.externalDiff",
"onCommand:gitlens.externalDiffAll",
"onCommand:gitlens.resetAvatarCache",
"onCommand:gitlens.resetSuppressedWarnings",
"onCommand:gitlens.inviteToLiveShare",
"onCommand:gitlens.browseRepoAtRevision",
@ -3748,6 +3749,11 @@
"category": "GitLens"
},
{
"command": "gitlens.resetAvatarCache",
"title": "Reset Avatar Cache",
"category": "GitLens"
},
{
"command": "gitlens.resetSuppressedWarnings",
"title": "Reset Suppressed Warnings",
"category": "GitLens"
@ -5471,6 +5477,10 @@
"when": "false"
},
{
"command": "gitlens.resetAvatarCache",
"when": "gitlens:enabled"
},
{
"command": "gitlens.resetSuppressedWarnings",
"when": "gitlens:enabled"
},

+ 1
- 0
src/commands.ts View File

@ -40,6 +40,7 @@ export * from './commands/rebaseEditor';
export * from './commands/refreshHover';
export * from './commands/remoteProviders';
export * from './commands/repositories';
export * from './commands/resetAvatarCache';
export * from './commands/resetSuppressedWarnings';
export * from './commands/setViewsLayout';
export * from './commands/searchCommits';

+ 1
- 0
src/commands/common.ts View File

@ -101,6 +101,7 @@ export enum Commands {
GitCommands = 'gitlens.gitCommands',
QuickOpenFileHistory = 'gitlens.quickOpenFileHistory',
RefreshHover = 'gitlens.refreshHover',
ResetAvatarCache = 'gitlens.resetAvatarCache',
ResetSuppressedWarnings = 'gitlens.resetSuppressedWarnings',
RevealCommitInView = 'gitlens.revealCommitInView',
SearchCommits = 'gitlens.showCommitSearch',

+ 14
- 0
src/commands/resetAvatarCache.ts View File

@ -0,0 +1,14 @@
'use strict';
import { resetAvatarCache } from '../avatars';
import { command, Command, Commands } from './common';
@command()
export class ResetAvatarCacheCommand extends Command {
constructor() {
super(Commands.ResetAvatarCache);
}
execute() {
resetAvatarCache('all');
}
}

||||||
x
 
000:0
Loading…
Cancel
Save