Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 0628fb0

Browse files
committed
Change tooltip and text of _timestampFormatStatusBar
1 parent d4d3003 commit 0628fb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serialmonitor/serialMonitor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export class SerialMonitor implements vscode.Disposable {
9494
this._timestampFormatStatusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right,
9595
constants.statusBarPriority.TIMESTAMP_FORMAT);
9696
this._timestampFormatStatusBar.command = "arduino.changeTimestampFormat";
97-
this._timestampFormatStatusBar.tooltip = "Timestamp Format";
98-
this._timestampFormatStatusBar.text = defaultTimestampFormat;
97+
this._timestampFormatStatusBar.tooltip = `Timestamp Format: "${defaultTimestampFormat}"`;
98+
this._timestampFormatStatusBar.text = `$(watch)`;
9999
this.updatePortListStatus();
100100

101101
const dc = DeviceContext.getInstance();
@@ -230,7 +230,7 @@ export class SerialMonitor implements vscode.Disposable {
230230
const timestampFormat = await vscode.window.showInputBox();
231231
await this._serialPortCtrl.changeTimestampFormat(timestampFormat);
232232
this._currentTimestampFormat = timestampFormat;
233-
this._timestampFormatStatusBar.text = timestampFormat;
233+
this._timestampFormatStatusBar.tooltip = `Timestamp Format: "${timestampFormat}"`;
234234
}
235235

236236
public async closeSerialMonitor(port: string, showWarning: boolean = true): Promise<boolean> {

0 commit comments

Comments
 (0)