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


TypeScript stats.collectLaunchConfigs函数代码示例

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


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

示例1: Folder

							workspaceStatPromises.push(collectWorkspaceStats(folder, ['node_modules', '.git']).then(async stats => {
								let countMessage = `${stats.fileCount} files`;
								if (stats.maxFilesReached) {
									countMessage = `more than ${countMessage}`;
								}
								console.log(`|    Folder (${basename(folder)}): ${countMessage}`);
								console.log(this.formatWorkspaceStats(stats));

								await collectLaunchConfigs(folder).then(launchConfigs => {
									if (launchConfigs.length > 0) {
										console.log(this.formatLaunchConfigs(launchConfigs));
									}
								});
							}).catch(error => {
开发者ID:DonJayamanne,项目名称:vscode,代码行数:14,代码来源:diagnosticsService.ts

示例2: Folder

						workspaceStatPromises.push(collectWorkspaceStats(folder, ['node_modules', '.git']).then(async stats => {

							let countMessage = `${stats.fileCount} files`;
							if (stats.maxFilesReached) {
								countMessage = `more than ${countMessage}`;
							}
							workspaceInfoMessages.push(`|    Folder (${basename(folder)}): ${countMessage}`);
							workspaceInfoMessages.push(formatWorkspaceStats(stats));

							const launchConfigs = await collectLaunchConfigs(folder);
							if (launchConfigs.length > 0) {
								workspaceInfoMessages.push(formatLaunchConfigs(launchConfigs));
							}
						}));
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:14,代码来源:diagnostics.ts

示例3: collectWorkspaceStats

				window.folders.forEach(folder => {
					try {
						const stats = collectWorkspaceStats(folder, ['node_modules', '.git']);
						let countMessage = `${stats.fileCount} files`;
						if (stats.maxFilesReached) {
							countMessage = `more than ${countMessage}`;
						}
						workspaceInfoMessages.push(`|    Folder (${basename(folder)}): ${countMessage}`);
						workspaceInfoMessages.push(formatWorkspaceStats(stats));

						const launchConfigs = collectLaunchConfigs(folder);
						if (launchConfigs.length > 0) {
							workspaceInfoMessages.push(formatLaunchConfigs(launchConfigs));
						}
					} catch (error) {
						workspaceInfoMessages.push(`|      Error: Unable to collect workpsace stats for folder ${folder} (${error.toString()})`);
					}
				});
开发者ID:costincaraivan,项目名称:vscode,代码行数:18,代码来源:diagnostics.ts


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