From afcaddac06a9f7a91e0cafb4219c622d73de335a Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Sat, 23 Mar 2024 12:15:07 +0000 Subject: [PATCH] removed status bar comma --- packages/vscode/src/statusbar.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/vscode/src/statusbar.ts b/packages/vscode/src/statusbar.ts index 632fd88b09..014629a3f7 100644 --- a/packages/vscode/src/statusbar.ts +++ b/packages/vscode/src/statusbar.ts @@ -24,10 +24,11 @@ export function activateStatusBar(state: ExtensionState) { const { template, fragment } = options || {} const { tokensSoFar } = progress || {} statusBarItem.text = toStringList( - parsing || (computing && !tokensSoFar) - ? `$(loading~spin)` - : `$(${ICON_LOGO_NAME})`, - tokensSoFar ? `${tokensSoFar} tokens` : undefined + `${ + parsing || (computing && !tokensSoFar) + ? `$(loading~spin)` + : `$(${ICON_LOGO_NAME})` + }${tokensSoFar ? ` ${tokensSoFar} tokens` : ""}` ) const md = new vscode.MarkdownString(