Closed dawiidio closed 7 months ago
@microsoft-github-policy-service agree
This is a great start! My advice is to keep you PRs very focused on a single feature. If you find a bug along the way, move it out to a different PR so that it can be merged separately.
The formatting issue is annoying (the added ,) maybe we can fix this before this PR so that it is "just a formatting PR".
A few more comments:
👍 keep going!
@pelikhan
when the native package is missing and the cli is in vscode mode, we should send a side channel message to vscode so that the install flow is gone through vscode UI (future PR)
sure, I can add this communication in next pr. Maybe you know, when cli is in vscode mode it opens some additional socket channel to communicate with plugin?
@pelikhan
when the native package is missing and the cli is in vscode mode, we should send a side channel message to vscode so that the install flow is gone through vscode UI (future PR)
sure, I can add this communication in next pr. Maybe you know, when cli is in vscode mode it opens some additional socket channel to communicate with plugin?
Search for export function sendEvent<T extends SideEvent>(
to see how to send an event from the CLI, and subSideEvent<SideOutputEvent>
to receive that even on the vscode side
I've added a common linting task in package.json and also a dep on prettier so that we run the same version. You should be able to merge origin/main
and it'll fix the whitespace/comma changes.
Merge origin/main
, run yarn install
and run yarn lint
to run prettier
@dawiidio i've added a commit (https://github.com/microsoft/devicescript/commit/4372a1464ed26dc3e8c9f0e7a7bafc6b2987948c) to prep for this change. You can squeeze in the interactive piece of your changes in the TODO I left. Might be easier to start a new PR though.
Thank you @dawiidio , your PR has made it into https://github.com/microsoft/devicescript/pull/656
It's just a small change but can improve flow while using cli.
When using
devs devtools src/main.ts
with "native" OS transports (eg: usb or serial - not via dashboard and WebUSB) user must specify transport by passing one of the following optionsall the above options require additional packages, that's why now you can install required package without leaving current process. Cli will detect if any of native transports is enabled and if required package is not installed will prompt question like the below one:
after installation normal process flow will be restored with installed dependencies ready to use.