-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
Add gulp task to consume serial-monitor-cli artifacts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
port: string; | ||
desc: string; | ||
hwid: string; | ||
vendorId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISerialPortDetail
here should be replaced with the definition of the same name in serialportctrl.ts
.
}); | ||
} | ||
}); | ||
resolve(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe resolve
should not be called here, but called in a handler for the spawn
event to prevent a race that resolves the promise before the error
event is emitted.
this._outputChannel.show(); | ||
|
||
if (this._child) { | ||
this._child.stdin.write("close\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this message needs to be wrapped in JSON. I might suggest just wrapping this logic into a closeChildProcess
method and reuse that, since I see this same pattern in a few places in this class.
this._child.stdin.write("close\n"); | |
this._child.stdin.write('{"cmd": "close"}\n'); |
* change to dev branch (#1323) * Change node serial to new serial cli (#1322) * add args to build * initial integration of serial cli * Add gulp task for serial-monitor-cli insertion * Temporarily disable serial monitor insertion task * Uncomment task * change platforms to match os.platform * fix linting * add relative path for serial Co-authored-by: Alan Leung <alleu@microsoft.com> * Add fixes from code review (#1328) * remove native serial dependencies * fixes from code review * Revert "remove native serial dependencies" This reverts commit 6586a66. * add vid pid support * code review fixes * revert stop to return bool * pre release v0.4.4-rc1 * bump to 0.4.4-rc2 * bump to v0.4.4 Co-authored-by: Alan Leung <alleu@microsoft.com>
changing away from the node serial package to avoid serial breaking any time electron updates.