You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
494 B

преди 6 години
  1. import { ConfigurationTarget } from 'vscode';
  2. import { configuration } from '../configuration';
  3. import type { Container } from '../container';
  4. import { command, Command, Commands } from './common';
  5. @command()
  6. export class ResetSuppressedWarningsCommand extends Command {
  7. constructor(private readonly container: Container) {
  8. super(Commands.ResetSuppressedWarnings);
  9. }
  10. async execute() {
  11. void (await configuration.update('advanced.messages', undefined, ConfigurationTarget.Global));
  12. }
  13. }