-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change arduino-cli config on switch workspace #1475
Conversation
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.
Tested on macOS, works as intended👍🏻
The code also looks good.
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.
Almost LGTM.
A small note below. And should we include it in 0.25.1. It’s a bug fix, so why not?
* | ||
* :: ArduinoCli -> Path -> Promise Object Error | ||
*/ | ||
export const updateWorkspace = async (cli, newWsPath) => { |
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.
A possibly better name to match terminology: switchWorkspace
…out recreating wrapper object
…ly with arduino-cli without restarting the IDE
b18b65c
to
46a55e9
Compare
Previously, when the user switched workspace and then tried to upload something onto the board or install package — arduino-cli works with the old workspace instead of newly selected one.
This PR make arduino-cli works always with the current user's workspace.
When he switches it — it changes arduino-cli
.cli-config.yml
.