UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

37 lines (35 loc) 1.61 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ISharedProcessWorkerConfiguration } from '../common/sharedProcessWorkerService.mjs'; export declare enum SharedProcessWorkerMessages { Spawn = 'vscode:shared-process->shared-process-worker=spawn', Terminate = 'vscode:shared-process->shared-process-worker=terminate', SelfTerminated = 'vscode:shared-process-worker->shared-process=selfTerminated', Ready = 'vscode:shared-process-worker->shared-process=ready', Ack = 'vscode:shared-process-worker->shared-process=ack', Trace = 'vscode:shared-process-worker->shared-process=trace', Info = 'vscode:shared-process-worker->shared-process=info', Warn = 'vscode:shared-process-worker->shared-process=warn', Error = 'vscode:shared-process-worker->shared-process=error', } export interface ISharedProcessWorkerEnvironment { /** * Full absolute path to our `bootstrap-fork.js` file. */ bootstrapPath: string; } interface IBaseMessage { id: string; nonce?: string; } export interface ISharedProcessToWorkerMessage extends IBaseMessage { configuration: ISharedProcessWorkerConfiguration; environment?: ISharedProcessWorkerEnvironment; } export interface IWorkerToSharedProcessMessage extends IBaseMessage { configuration?: ISharedProcessWorkerConfiguration; message?: string; } export {};