sussudio
Version:
An unofficial VS Code Internal API
13 lines (12 loc) • 758 B
JavaScript
/*---------------------------------------------------------------------------------------------
* 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;
}