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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"C++"
],
"activationEvents": [
"*",
"onLanguage:cpp",
"onCommand:arduino.verify",
"onCommand:arduino.upload",
"onCommand:arduino.cliUpload",
"onCommand:arduino.uploadUsingProgrammer",
"onCommand:arduiono.cliUploadUsingProgrammer",
"onCommand:arduino.cliUploadUsingProgrammer",
"onCommand:arduino.rebuildIntelliSenseConfig",
"onCommand:arduino.selectProgrammer",
"onCommand:arduino.selectSerialPort",
Expand Down
4 changes: 3 additions & 1 deletion test/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ suite("Arduino: Commands Tests", () => {
const extension = vscode.extensions.getExtension("vsciot-vscode.vscode-arduino");
if (!extension.isActive) {
extension.activate().then((api) => {
done();
// The extension waits 100ms before registering some commands,
// so add a longer delay here before running tests.
setTimeout(() => done(), 200);
}, () => {
done("Failed to activate extension");
});
Expand Down