Skip to content

Commit

Permalink
Update statusbar.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz authored Aug 30, 2024
1 parent 2286c30 commit e4586bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/statusbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ export function activateStatusBarJuvixVersionItem(context: vscode.ExtensionConte
}

export function activateStatusBarCommandItem(context: vscode.ExtensionContext, _config: user.JuvixConfig) {
/* The itemPriority number is used to arrange items in the status bar, specifically on the left.
The higher the position to the left, and with many extensions, the order becomes unpredictable
and it can get mixed up. The number 999 appears to be high enough to make it visible most of
the time. */
const itemPriority = 999;
JuvixCommandStatusItem = vscode.window.createStatusBarItem(
vscode.StatusBarAlignment.Left,
999
itemPriority
);
JuvixCommandStatusItem.hide();
context.subscriptions.push(JuvixCommandStatusItem);
Expand Down

0 comments on commit e4586bd

Please sign in to comment.