Skip to content

Commit

Permalink
🐞 fix: gen uuid for status bar items
Browse files Browse the repository at this point in the history
Signed-off-by: YXL <[email protected]>

#953
  • Loading branch information
YXL76 committed Apr 14, 2024
1 parent 8967023 commit fbbc4a9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions packages/client/src/manager/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -69,17 +70,17 @@ class ButtonManager {
];

readonly #buttons = [
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -128),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -129),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -130),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -131),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -132),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -133),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -134),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -135),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -136),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -137),
<MyStatusBarItem>window.createStatusBarItem(StatusBarAlignment.Left, -138),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -128),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -129),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -130),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -131),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -132),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -133),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -134),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -135),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -136),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -137),
<MyStatusBarItem>window.createStatusBarItem(randomUUID(), StatusBarAlignment.Left, -138),
];

#buttonShow = <boolean[]>Array(11).fill(true);
Expand Down

0 comments on commit fbbc4a9

Please sign in to comment.