This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 43
43
" onCommand:arduino.selectSerialPort" ,
44
44
" onCommand:arduino.selectSketch" ,
45
45
" onCommand:arduino.openSerialMonitor" ,
46
- " onCommand:arduino.viewTimestampFormat " ,
46
+ " onCommand:arduino.changeTimestampFormat " ,
47
47
" onCommand:arduino.closeSerialMonitor" ,
48
48
" onCommand:arduino.changeBoardType" ,
49
49
" onCommand:arduino.showBoardConfig" ,
127
127
"title" : " Arduino: Open Serial Monitor"
128
128
},
129
129
{
130
- "command" : " arduino.viewTimestampFormat " ,
131
- "title" : " Arduino: View Timestamp"
130
+ "command" : " arduino.changeTimestampFormat " ,
131
+ "title" : " Arduino: Change Timestamp"
132
132
},
133
133
{
134
134
"command" : " arduino.closeSerialMonitor" ,
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ export class ArduinoApp {
747
747
if ( buildMode === BuildMode . Upload || buildMode === BuildMode . UploadProgrammer ) {
748
748
UsbDetector . getInstance ( ) . resumeListening ( ) ;
749
749
if ( restoreSerialMonitor ) {
750
- await SerialMonitor . getInstance ( ) . openSerialMonitor ( ) ;
750
+ await SerialMonitor . getInstance ( ) . openSerialMonitor ( true ) ;
751
751
}
752
752
}
753
753
return ret ;
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ export async function activate(context: vscode.ExtensionContext) {
283
283
context . subscriptions . push ( serialMonitor ) ;
284
284
registerNonArduinoCommand ( "arduino.selectSerialPort" , ( ) => serialMonitor . selectSerialPort ( ) ) ;
285
285
registerNonArduinoCommand ( "arduino.openSerialMonitor" , ( ) => serialMonitor . openSerialMonitor ( ) ) ;
286
- registerNonArduinoCommand ( "arduino.viewTimestampFormat " , ( ) => serialMonitor . viewTimestampFormat ( ) ) ;
286
+ registerNonArduinoCommand ( "arduino.changeTimestampFormat " , ( ) => serialMonitor . changeTimestampFormat ( ) ) ;
287
287
registerNonArduinoCommand ( "arduino.closeSerialMonitor" , ( port ) => serialMonitor . closeSerialMonitor ( port ) ) ;
288
288
289
289
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 {
56
56
57
57
this . timestampFormatStatusBar = vscode . window . createStatusBarItem ( vscode . StatusBarAlignment . Right ,
58
58
constants . statusBarPriority . TIMESTAMP_FORMAT ) ;
59
- this . timestampFormatStatusBar . command = "arduino.viewTimestampFormat " ;
59
+ this . timestampFormatStatusBar . command = "arduino.changeTimestampFormat " ;
60
60
// Get the value from the serial monitor extension settings.
61
- this . timestampFormatStatusBar . tooltip = `View timestamp format` ;
61
+ this . timestampFormatStatusBar . tooltip = `Change timestamp format` ;
62
62
this . timestampFormatStatusBar . text = `$(watch)` ;
63
63
64
64
this . updatePortListStatus ( ) ;
@@ -128,7 +128,7 @@ export class SerialMonitor implements vscode.Disposable {
128
128
}
129
129
}
130
130
131
- public async viewTimestampFormat ( ) : Promise < void > {
131
+ public async changeTimestampFormat ( ) : Promise < void > {
132
132
await vscode . commands . executeCommand ( "workbench.action.openSettings" , "vscode-serial-monitor.timestampFormat" ) ;
133
133
}
134
134
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ suite("Arduino: Extension Tests", () => {
47
47
"arduino.initialize" ,
48
48
"arduino.selectSerialPort" ,
49
49
"arduino.openSerialMonitor" ,
50
- "arduino.viewTimestampFormat " ,
50
+ "arduino.changeTimestampFormat " ,
51
51
"arduino.closeSerialMonitor" ,
52
52
"arduino.reloadExample" ,
53
53
"arduino.showExampleExplorer" ,
You can’t perform that action at this time.
0 commit comments