YashTotale/terminal-all-in-one

View on GitHub
src/commands/fontSize/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import BaseCommand from "../baseCommand";

export default class FontSize extends BaseCommand {
  getFontSizeConfig(): number {
    return this.getConfig("terminal.integrated.fontSize");
  }

  updateFontSizeConfig(value: number) {
    this.updateConfig({
      key: "terminal.integrated.fontSize",
      value,
    });
    this.clearTerminal();
  }

  showFontSizeSelectedMessage(fontSize: string, undo: () => any) {
    return this.showMessage("fontSizeSelected", fontSize, undo);
  }
}