本文整理汇总了TypeScript中wing.window.showInformationMessage方法的典型用法代码示例。如果您正苦于以下问题:TypeScript window.showInformationMessage方法的具体用法?TypeScript window.showInformationMessage怎么用?TypeScript window.showInformationMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wing.window
的用法示例。
在下文中一共展示了window.showInformationMessage方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: action
export function action(): void {
wing.window.showInformationMessage("This is an info message");
wing.window.showErrorMessage("This is an error message");
wing.window.showWarningMessage('This is a warn message');
wing.window.showInformationMessage('This is a info message with callback', 'Show Again').then(value => {
if (value == 'Show Again') {
wing.window.showInformationMessage('Show Again');
}
});
}
示例2: showFileName
function showFileName(context) {
wing.window.showInformationMessage('showFileName');
let editor = wing.window.activeTextEditor;
if (!editor) {
return;
}
let doc = editor.document;
let fileName = doc.fileName;
wing.window.showInformationMessage(fileName);
// if (fileName.indexOf('.psd')>=0 || fileName.indexOf('.psb')>=0) {
// // wing.window.showInformationMessage('obj file');
// _fileName = fileName;
// let html = wing.Uri.file(path.join(context.extensionPath, 'web/index.html'));
// // showWebViewPopup(html);
// previewWebView(html);
// }
}
示例3: copyIds
function copyIds() {
let e = wing.window.activeTextEditor;
if (!e) {
return;
}
let fileName = e.document.fileName;
let ext = path.extname(fileName);
if (ext != '.exml') {
return;
}
let content = e.document.getText();
let result = findIds(content);
if (result) {
clipboard.copy(result, () => {
wing.window.showInformationMessage("已成功解析exml中id,并复制对应的ts代码到剪切板,可使用粘贴操作到指定位置.");
});
} else {
wing.window.showInformationMessage("exml中不存在id属性的节点.");
}
}
示例4:
webview.addEventListener('ipc-message', (message) => {
wing.window.showInformationMessage('Message From WebView: ' + message.channel, ...message.args);
webview.send('pong');
});
示例5: assemble
}).then((result)=>{
let settings = result.getProperties(true);
let classContent = assemble(className,baseClass,skinName,classComponents,settings);
fs.writeFileSync(settings["inputbox"],classContent,{encoding:"utf-8"});
wing.window.showInformationMessage('生成成功:'+settings["inputbox"]);
})
示例6: activate
export function activate(context: wing.ExtensionContext) {
wing.commands.registerCommand('extension.ExmlToClass', doExchange);
wing.window.showInformationMessage('extension.ExmlToClass is activated');
}
示例7:
}).then((result) => {
result && wing.window.showInformationMessage(JSON.stringify(result.getProperties(true)));
});
示例8:
clipboard.copy(result, () => {
wing.window.showInformationMessage("已成功解析exml中id,并复制对应的ts代码到剪切板,可使用粘贴操作到指定位置.");
});
示例9:
wing.window.showInformationMessage('This is a info message with callback', 'Show Again').then(value => {
if (value == 'Show Again') {
wing.window.showInformationMessage('Show Again');
}
});
示例10: helloWing
function helloWing() {
wing.window.showInformationMessage('Hello Wing');
}