diff --git a/packages/client/src/manager/button.ts b/packages/client/src/manager/button.ts index b6c0fbb06..abc26a189 100644 --- a/packages/client/src/manager/button.ts +++ b/packages/client/src/manager/button.ts @@ -4,6 +4,7 @@ import { BUTTON_KEY } from "../constant/index.js"; import type { QueueContent } from "../treeview/index.js"; import type { StatusBarItem } from "vscode"; import i18n from "../i18n/index.js"; +import { randomUUID } from "node:crypto"; const enum Label { seekbackward, @@ -69,17 +70,17 @@ class ButtonManager { ]; readonly #buttons = [ - window.createStatusBarItem(StatusBarAlignment.Left, -128), - window.createStatusBarItem(StatusBarAlignment.Left, -129), - window.createStatusBarItem(StatusBarAlignment.Left, -130), - window.createStatusBarItem(StatusBarAlignment.Left, -131), - window.createStatusBarItem(StatusBarAlignment.Left, -132), - window.createStatusBarItem(StatusBarAlignment.Left, -133), - window.createStatusBarItem(StatusBarAlignment.Left, -134), - window.createStatusBarItem(StatusBarAlignment.Left, -135), - window.createStatusBarItem(StatusBarAlignment.Left, -136), - window.createStatusBarItem(StatusBarAlignment.Left, -137), - window.createStatusBarItem(StatusBarAlignment.Left, -138), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -128), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -129), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -130), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -131), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -132), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -133), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -134), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -135), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -136), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -137), + window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -138), ]; #buttonShow = Array(11).fill(true);