vscode-minxing-extension
Version:
适用于敏行移动平台的开发工具,包含创建应用模板,WiFi真机同步,日志输出等功能
29 lines (28 loc) • 794 B
text/typescript
import * as vscode from 'vscode';
export default {
_channel: null,
init() {
if (this._channel) return;
this._channel = vscode.window.createOutputChannel('敏行');
this._channel.appendLine(`vscode-minxing-devtolls已启动!`);
},
log(str: string) {
this._channel.appendLine(str);
},
showChannel() {
this._channel.show();
},
info(msg: string) {
vscode.window.showInformationMessage(msg);
},
warn(msg: string) {
vscode.window.showErrorMessage(msg);
},
noActive() {
this.warn(`检测不到活动的敏行项目!`);
},
invalidProject(filePath: string) {
this.warn(`${filePath}不在一个有效的敏行项目中!`);
}
}