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

Commit 64e7a8e

Browse files
authored
Merge pull request #1481 from BelKed/activation-events
Don't use `*` activation event
2 parents 22eec09 + 8b42e38 commit 64e7a8e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
"C++"
3434
],
3535
"activationEvents": [
36-
"*",
36+
"onLanguage:cpp",
3737
"onCommand:arduino.verify",
3838
"onCommand:arduino.upload",
3939
"onCommand:arduino.cliUpload",
4040
"onCommand:arduino.uploadUsingProgrammer",
41-
"onCommand:arduiono.cliUploadUsingProgrammer",
41+
"onCommand:arduino.cliUploadUsingProgrammer",
4242
"onCommand:arduino.rebuildIntelliSenseConfig",
4343
"onCommand:arduino.selectProgrammer",
4444
"onCommand:arduino.selectSerialPort",

test/commands.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ suite("Arduino: Commands Tests", () => {
1313
const extension = vscode.extensions.getExtension("vsciot-vscode.vscode-arduino");
1414
if (!extension.isActive) {
1515
extension.activate().then((api) => {
16-
done();
16+
// The extension waits 100ms before registering some commands,
17+
// so add a longer delay here before running tests.
18+
setTimeout(() => done(), 200);
1719
}, () => {
1820
done("Failed to activate extension");
1921
});

0 commit comments

Comments
 (0)