UNPKG

youzanyun-devtool-worker

Version:

28 lines (27 loc) 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); const Command_1 = require("../Command"); let CommandContentRefresh = class CommandContentRefresh extends Command_1.AbstractCommand { getKey() { return 'content-refresh'; } async getDescription(workbenchId, projectId) { return { key: this.getKey(), description: "刷新", icon: "reload", disable: false, }; } async execute(workbenchId, projectId) { this.contentWindowService.refreshContent(workbenchId); } async reset(workbenchId, projectId) { } }; CommandContentRefresh = tslib_1.__decorate([ (0, spring4js_nodejs_1.Service)() ], CommandContentRefresh); exports.default = CommandContentRefresh;