This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 131
131
" info" ,
132
132
" verbose"
133
133
]
134
- },
135
- "arduino.clangFormatStyle" : {
136
- "type" : " string" ,
137
- "desription" : " The clang-format style value. Set this value to file if want to use the .clang-format file"
138
134
}
139
135
}
140
136
},
172
168
"postinstall" : " node ./node_modules/vscode/bin/install && cd ./html && npm install" ,
173
169
"test" : " node ./node_modules/vscode/bin/test"
174
170
},
171
+ "extensionDependencies" : [
172
+ " ms-vscode.cpptools"
173
+ ],
175
174
"devDependencies" : {
176
175
"@types/mocha" : " ^2.2.32" ,
177
176
"@types/node" : " ^6.0.40" ,
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ export async function activate(context: vscode.ExtensionContext) {
42
42
context . subscriptions . push ( vscode . workspace . registerTextDocumentContentProvider ( ARDUINO_MANAGER_PROTOCOL , arduinoManagerProvider ) ) ;
43
43
44
44
let registerCommand = ( command : string , commandBody : ( ...args : any [ ] ) => any , getUserData ?: ( ) => any ) : vscode . Disposable => {
45
- return vscode . commands . registerCommand ( command , async ( ) => {
45
+ return vscode . commands . registerCommand ( command , async ( ... args : any [ ] ) => {
46
46
let guid = Uuid . create ( ) . value ;
47
47
Logger . traceUserData ( `start-command-` + command , { correlationId : guid } ) ;
48
48
let timer1 = new Logger . Timer ( ) ;
49
49
let telemetryResult ;
50
50
try {
51
- let result = commandBody ( ) ;
51
+ let result = commandBody ( ... args ) ;
52
52
if ( result ) {
53
53
result = await Promise . resolve ( result ) ;
54
54
}
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export class SerialMonitor {
132
132
}
133
133
await this . _serialPortCtrl . stop ( ) ;
134
134
this . updatePortStatus ( false ) ;
135
- } else {
135
+ } else if ( ! port ) {
136
136
Logger . notifyUserWarning ( "closeSerialMonitorError" , new Error ( constants . messages . SERIAL_PORT_NOT_STARTED ) ) ;
137
137
}
138
138
}
You can’t perform that action at this time.
0 commit comments