mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-02 09:35:41 -05:00
18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
'use strict';
|
|
import { Objects } from '../system';
|
|
import { ExtensionContext } from 'vscode';
|
|
import { Command, Commands } from './common';
|
|
import { SuppressedKeys } from '../messages';
|
|
|
|
export class ResetSuppressedWarningsCommand extends Command {
|
|
|
|
constructor(private context: ExtensionContext) {
|
|
super(Commands.ResetSuppressedWarnings);
|
|
}
|
|
|
|
async execute() {
|
|
for (const key of Objects.values<string>(SuppressedKeys)) {
|
|
await this.context.globalState.update(key, false);
|
|
}
|
|
}
|
|
} |