sussudio
Version:
An unofficial VS Code Internal API
20 lines (19 loc) • 1 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* 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 "../../../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';