当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript wing.commands类代码示例

本文整理汇总了TypeScript中wing.commands的典型用法代码示例。如果您正苦于以下问题:TypeScript commands类的具体用法?TypeScript commands怎么用?TypeScript commands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了commands类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: activate

export function activate(context: wing.ExtensionContext) {
	console.log('activate');

	let html = wing.Uri.file(path.join(context.extensionPath, 'web/index.html'));

	wing.window.webviews.forEach(webview => {
		webviewAdded(webview);
	});

	wing.window.onDidCreateWebView((webview) => {
		webviewAdded(webview);
	});

	wing.window.onDidDeleteWebView((webview) => {
		webviewRemoved(webview);
	});

	// wing.commands.registerCommand('extension.previewWebView', () => {
	// 	previewWebView(html);
	// });
	// hello
	wing.commands.registerCommand('extension.showNewTsClassPopup', () => {
		showWebViewPopup(html);
	});
}
开发者ID:Gt-Lab,项目名称:gtlab-wing-extensions,代码行数:25,代码来源:extension.ts

示例2: activate

export function activate(context: wing.ExtensionContext) {
	let html = wing.Uri.file(path.join(context.extensionPath, 'web/index.html'));

	wing.window.webviews.forEach(webview => {
		webviewAdded(webview);
	});

	wing.window.onDidCreateWebView((webview) => {
		webviewAdded(webview);
	});

	wing.window.onDidDeleteWebView((webview) => {
		webviewRemoved(webview);
	});

	wing.commands.registerCommand('extension.newUiStoryboard', () => {
		previewWebView(html);
	});
	wing.commands.registerCommand('extension.showWebViewPopup', () => {
		showWebViewPopup(html);
	});
}
开发者ID:Gt-Lab,项目名称:gtlab-wing-extensions,代码行数:22,代码来源:extension.ts

示例3: activate

export function activate(context: wing.ExtensionContext) {
	let html = wing.Uri.file(path.join(context.extensionPath, 'web/index.html'));
	
	wing.window.webviews.forEach(webview => {
		webviewAdded(webview);
	});

	wing.window.onDidCreateWebView((webview) => {
		webviewAdded(webview);
	});

	wing.window.onDidDeleteWebView((webview) => {
		webviewRemoved(webview);
	});

	wing.commands.registerCommand('extension.previewWebView', () => {
		previewWebView(html);
	});
	wing.commands.registerCommand('extension.showWebViewPopup', () => {
		showWebViewPopup(html);
	});
	
	
	wing.window.onDidChangeActiveTextEditor((texteditor) => {
		// console.log('onDidChangeActiveTextEditor');
		// previewWebView(html);
		
		showFileName(context);
	});
	showFileName(context);
	
	// wing.workspace.onDidChangeTextDocument((event)=>{
	// 	wing.window.showInformationMessage('wing.workspace.onDidChangeTextDocument');
	// });
	
	
}
开发者ID:Gt-Lab,项目名称:gtlab-wing-extensions,代码行数:37,代码来源:extension.ts

示例4: activate

export function activate(context: wing.ExtensionContext) {
	wing.commands.registerCommand('extension.showWebView', () => {
		run(context);
	});
}
开发者ID:lixin2628,项目名称:wing-extensions,代码行数:5,代码来源:extension.ts

示例5: activate

export function activate(context: wing.ExtensionContext) {
	// console.log('activate');
	// wing.window.showInformationMessage('activate');
	
	let html = wing.Uri.file(path.join(context.extensionPath, 'web/index.html'));

	wing.window.webviews.forEach(webview => {
		webviewAdded(webview);
	});

	wing.window.onDidCreateWebView((webview) => {
		webviewAdded(webview);
	});

	wing.window.onDidDeleteWebView((webview) => {
		webviewRemoved(webview);
	});

	wing.commands.registerCommand('extension.gtlab.wingPsMaster.show', () => {
		previewWebView(html);
	});
	// wing.commands.registerCommand('extension.showWebViewPopup', () => {
	// 	showWebViewPopup(html);
	// });
	
	
	
	// // workspace
	// wing.workspace.onDidChangeTextDocument((e: any) => {
	// 	wing.window.showInformationMessage('onDidChangeTextDocument');
	// });
	
	// wing.workspace.onDidOpenTextDocument((e: any) => {
	// 	wing.window.showInformationMessage('onDidOpenTextDocument');
	// });
	
	
	
	// // window
	// wing.window.onDidChangeTextEditorOptions((e:any) => {
	// 	wing.window.showInformationMessage('onDidChangeTextEditorOptions');
	// });
	
	// wing.window.onDidChangeTextEditorSelection((e:any)=>{
	// 	wing.window.showInformationMessage('onDidChangeTextEditorSelection');
	// });
	
	// wing.window.onDidChangeTextEditorViewColumn((e:any)=>{
	// 	wing.window.showInformationMessage('onDidChangeTextEditorViewColumn');
	// });
	
	
	
	
	// wing.window.onDidChangeActiveTextEditor((texteditor) => {
	// 	wing.window.showInformationMessage('onDidChangeActiveTextEditor');
	// 	// console.log('onDidChangeActiveTextEditor');
	// 	// previewWebView(html);
		
	// 	// showFileName(context);
	// });
	// // showFileName(context);
	
	// wing.window.showInformationMessage('setInterval');
	// setInterval( function () {
	// 	showFileName(context)
	// }, 2000);
}
开发者ID:Gt-Lab,项目名称:gtlab-wing-extensions,代码行数:68,代码来源:extension.ts

示例6: activate

export function activate() {
	console.log('activated..');
	wing.commands.registerCommand('mapedit.generate', doit);
	doit();
}
开发者ID:AdoBeatTheWorld,项目名称:EgretWingExtensions,代码行数:5,代码来源:extension.ts

示例7: activate

export function activate() {
	console.log('Congratulations, your extension "TextTools" is now active!');
	wing.commands.registerCommand('extension.textFunctions', textFunctions);
}
开发者ID:lixin2628,项目名称:wing-extensions,代码行数:4,代码来源:extension.ts

示例8: activate

export function activate(context: wing.ExtensionContext) {
	wing.commands.registerCommand('extension.formPopup', run);
}
开发者ID:shuidong,项目名称:wing-extensions,代码行数:3,代码来源:extension.ts

示例9: activate

export function activate(context: wing.ExtensionContext) {
	wing.commands.registerCommand('extension.ExmlToClass', doExchange);
	wing.window.showInformationMessage('extension.ExmlToClass is activated');
}
开发者ID:AdoBeatTheWorld,项目名称:EgretWingExtensions,代码行数:4,代码来源:extension.ts

示例10: activate

export function activate() {
    wing.commands.registerCommand("extension.copyIds", copyIds);
}
开发者ID:lixin2628,项目名称:wing-extensions,代码行数:3,代码来源:extension.ts


注:本文中的wing.commands类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。