Skip to content

Commit

Permalink
Listen for volume prune events (#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored Nov 28, 2022
1 parent b29c7e0 commit 1fa4108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/RefreshManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type RefreshReason = 'interval' | 'event' | 'config' | 'manual' | 'contextChange
const ContainerEventActions: EventAction[] = ['create', 'destroy', 'die', 'kill', 'pause', 'rename', 'restart', 'start', 'stop', 'unpause', 'update'];
const ImageEventActions: EventAction[] = ['delete', 'import', 'load', 'pull', 'save', 'tag', 'untag'];
const NetworkEventActions: EventAction[] = ['create', 'destroy', 'remove'];
const VolumeEventActions: EventAction[] = ['create', 'destroy'];
const VolumeEventActions: EventAction[] = ['create', 'destroy', 'prune']; // Unlike containers/images/networks, when pruning volumes, no `destroy` event is fired, only `prune`, so we listen to that too

export class RefreshManager extends vscode.Disposable {
private readonly autoRefreshDisposables: vscode.Disposable[] = [];
Expand Down

0 comments on commit 1fa4108

Please sign in to comment.