Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Don't use * activation event #1481

Merged
merged 4 commits into from
Mar 24, 2022
Merged

Don't use * activation event #1481

merged 4 commits into from
Mar 24, 2022

Conversation

BelKed
Copy link
Contributor

@BelKed BelKed commented Mar 24, 2022

Using the * activation event is not a best practise. Instead, it should use onLanguage:cpp or something similar.

I realized that in onCommand:arduiono.cliUploadUsingProgrammer is a typo so that's also fixed in this PR...


Related to

@benmcmorran
Copy link
Member

/azp run

@benmcmorran
Copy link
Member

Thanks for the contribution @BelKed! Don't mind any comments I'm making below -- I'm just trying to convince the bot to run our private CI.

@benmcmorran
Copy link
Member

/azp run

@benmcmorran
Copy link
Member

/azp run

@benmcmorran benmcmorran merged commit 64e7a8e into microsoft:main Mar 24, 2022
@BelKed BelKed deleted the activation-events branch March 24, 2022 18:20
@daniel-stoneuk
Copy link

daniel-stoneuk commented Mar 24, 2022

Just checking, would it be better to activate only on workspaceContains:**/*.ino? I'm not super familiar with different types of arduino projects, so please correct me if I'm wrong!

@benmcmorran
Copy link
Member

That's a good point. I was thinking that Arduino projects may include C/C++ sources in their projects, but you're right that there will always be at least one .ino file if it's an Arduino project. I'll create a follow-up PR with the change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants