TypeScript vs/workbench/services/extensions/node/extensionHostProcessSetup startExtensionHostProcess示例

说明

typescript vs/workbench/services/extensions/node/extensionhostprocesssetup startextensionhostprocess示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: TypeScript

命名空间/包名称: vs/workbench/services/extensions/node/extensionHostProcessSetup

示例#1
文件: extensionHostProcess.ts 项目: PKRoma/vscode

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { startExtensionHostProcess } from 'vs/workbench/services/extensions/node/extensionHostProcessSetup';

startExtensionHostProcess().catch((err) => console.log(err));

示例#2
文件: extensionHostProcess.ts 项目: eamodio/vscode

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import * as nls from 'vs/nls';
import { startExtensionHostProcess } from 'vs/workbench/services/extensions/node/extensionHostProcessSetup';

startExtensionHostProcess(
	_ => null,
	_ => null,
	_ => nls.localize('extension host Log', "Extension Host")
).catch((err) => console.log(err));

展开阅读全文