This repository was archived by the owner on Dec 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export class SerialMonitor implements vscode.Disposable {
73
73
this . _baudRateStatusBar . command = "arduino.changeBaudRate" ;
74
74
this . _baudRateStatusBar . tooltip = "Baud Rate" ;
75
75
this . _baudRateStatusBar . text = defaultBaudRate . toString ( ) ;
76
- this . updatePortListStatus ( null ) ;
76
+ this . updatePortListStatus ( ) ;
77
77
78
78
this . _endingStatusBar = vscode . window . createStatusBarItem ( vscode . StatusBarAlignment . Right , constants . statusBarPriority . ENDING ) ;
79
79
this . _ending = SerialMonitor . DEFAULT_ENDING ;
@@ -83,7 +83,7 @@ export class SerialMonitor implements vscode.Disposable {
83
83
84
84
const dc = DeviceContext . getInstance ( ) ;
85
85
dc . onChangePort ( ( ) => {
86
- this . updatePortListStatus ( null ) ;
86
+ this . updatePortListStatus ( ) ;
87
87
} ) ;
88
88
}
89
89
public get initialized ( ) : boolean {
@@ -230,8 +230,7 @@ export class SerialMonitor implements vscode.Disposable {
230
230
}
231
231
}
232
232
233
- // TODO EW: use default value for port function parameter and change all updatePortListStatus(null) calls accordingly
234
- private updatePortListStatus ( port : string ) {
233
+ private updatePortListStatus ( port ?: string ) {
235
234
const dc = DeviceContext . getInstance ( ) ;
236
235
if ( port ) {
237
236
dc . port = port ;
You can’t perform that action at this time.
0 commit comments