This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4343 " onCommand:arduino.selectSerialPort" ,
4444 " onCommand:arduino.selectSketch" ,
4545 " onCommand:arduino.openSerialMonitor" ,
46- " onCommand:arduino.viewTimestampFormat " ,
46+ " onCommand:arduino.changeTimestampFormat " ,
4747 " onCommand:arduino.closeSerialMonitor" ,
4848 " onCommand:arduino.changeBoardType" ,
4949 " onCommand:arduino.showBoardConfig" ,
127127 "title" : " Arduino: Open Serial Monitor"
128128 },
129129 {
130- "command" : " arduino.viewTimestampFormat " ,
131- "title" : " Arduino: View Timestamp"
130+ "command" : " arduino.changeTimestampFormat " ,
131+ "title" : " Arduino: Change Timestamp"
132132 },
133133 {
134134 "command" : " arduino.closeSerialMonitor" ,
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ export class ArduinoApp {
747747 if ( buildMode === BuildMode . Upload || buildMode === BuildMode . UploadProgrammer ) {
748748 UsbDetector . getInstance ( ) . resumeListening ( ) ;
749749 if ( restoreSerialMonitor ) {
750- await SerialMonitor . getInstance ( ) . openSerialMonitor ( ) ;
750+ await SerialMonitor . getInstance ( ) . openSerialMonitor ( true ) ;
751751 }
752752 }
753753 return ret ;
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ export async function activate(context: vscode.ExtensionContext) {
283283 context . subscriptions . push ( serialMonitor ) ;
284284 registerNonArduinoCommand ( "arduino.selectSerialPort" , ( ) => serialMonitor . selectSerialPort ( ) ) ;
285285 registerNonArduinoCommand ( "arduino.openSerialMonitor" , ( ) => serialMonitor . openSerialMonitor ( ) ) ;
286- registerNonArduinoCommand ( "arduino.viewTimestampFormat " , ( ) => serialMonitor . viewTimestampFormat ( ) ) ;
286+ registerNonArduinoCommand ( "arduino.changeTimestampFormat " , ( ) => serialMonitor . changeTimestampFormat ( ) ) ;
287287 registerNonArduinoCommand ( "arduino.closeSerialMonitor" , ( port ) => serialMonitor . closeSerialMonitor ( port ) ) ;
288288
289289 const completionProvider = new completionProviderModule . CompletionProvider ( ) ;
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ export class SerialMonitor implements vscode.Disposable {
5656
5757 this . timestampFormatStatusBar = vscode . window . createStatusBarItem ( vscode . StatusBarAlignment . Right ,
5858 constants . statusBarPriority . TIMESTAMP_FORMAT ) ;
59- this . timestampFormatStatusBar . command = "arduino.viewTimestampFormat " ;
59+ this . timestampFormatStatusBar . command = "arduino.changeTimestampFormat " ;
6060 // Get the value from the serial monitor extension settings.
61- this . timestampFormatStatusBar . tooltip = `View timestamp format` ;
61+ this . timestampFormatStatusBar . tooltip = `Change timestamp format` ;
6262 this . timestampFormatStatusBar . text = `$(watch)` ;
6363
6464 this . updatePortListStatus ( ) ;
@@ -128,7 +128,7 @@ export class SerialMonitor implements vscode.Disposable {
128128 }
129129 }
130130
131- public async viewTimestampFormat ( ) : Promise < void > {
131+ public async changeTimestampFormat ( ) : Promise < void > {
132132 await vscode . commands . executeCommand ( "workbench.action.openSettings" , "vscode-serial-monitor.timestampFormat" ) ;
133133 }
134134
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ suite("Arduino: Extension Tests", () => {
4747 "arduino.initialize" ,
4848 "arduino.selectSerialPort" ,
4949 "arduino.openSerialMonitor" ,
50- "arduino.viewTimestampFormat " ,
50+ "arduino.changeTimestampFormat " ,
5151 "arduino.closeSerialMonitor" ,
5252 "arduino.reloadExample" ,
5353 "arduino.showExampleExplorer" ,
You can’t perform that action at this time.
0 commit comments