UNPKG

@sussudio/platform

Version:

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

13 lines (12 loc) 746 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { machineIdKey } from '../common/telemetry.mjs'; import { resolveMachineId as resolveNodeMachineId } from '../node/telemetryUtils.mjs'; export async function resolveMachineId(stateService) { // Call the node layers implementation to avoid code duplication const machineId = await resolveNodeMachineId(stateService); stateService.setItem(machineIdKey, machineId); return machineId; }