UNPKG

@sussudio/platform

Version:

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

20 lines (19 loc) 985 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { hash as hashObject } from '@sussudio/base/common/hash.mjs'; import { createDecorator } from '../../instantiation/common/instantiation.mjs'; /** * Converts the process configuration into a hash to * identify processes of the same kind by taking those * components that make the process and reply unique. */ export function hash(configuration) { return hashObject({ moduleId: configuration.process.moduleId, windowId: configuration.reply.windowId, }); } export const ISharedProcessWorkerService = createDecorator('sharedProcessWorkerService'); export const ipcSharedProcessWorkerChannelName = 'sharedProcessWorker';