Skip to content

Commit d9f6871

Browse files
committed
Use uuid for machine_id
1 parent 44c9a8a commit d9f6871

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

package-lock.json

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@
137137
"eslint-plugin-import": "^2.32.0",
138138
"fs-extra": "^11.3.1",
139139
"ms": "^2.1.3",
140-
"node-machine-id": "^1.1.12",
141140
"npm-run-all": "^4.1.5",
142141
"p-min-delay": "^4.1.0",
143142
"typescript": "^5.9.2",

src/utils/manage.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { machineId } from "node-machine-id";
2-
import { v7 as uuidv7 } from "uuid";
1+
import { v7 as uuidv7, v4 as uuidv4 } from "uuid";
32
import type { ExtensionContext, LogOutputChannel, MessageItem } from "vscode";
43
import { commands, env, Uri, window } from "vscode";
54

@@ -274,7 +273,7 @@ export async function getOrCreateMachineId(
274273
): Promise<string> {
275274
let machineIdValue = context.workspaceState.get<string>("machine_id");
276275
if (!machineIdValue) {
277-
machineIdValue = await machineId(true);
276+
machineIdValue = uuidv4();
278277
await context.workspaceState.update("machine_id", machineIdValue);
279278
}
280279
return machineIdValue;

0 commit comments

Comments
 (0)