UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

28 lines (27 loc) 873 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([ spring4js_nodejs_1.Service() ], CommandContentRefresh); exports.default = CommandContentRefresh;