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

Commit 4ec65f2

Browse files
authored
Merge pull request #506 from Microsoft/zhe-union
Do not union boards
2 parents fedccc6 + 232bea1 commit 4ec65f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/arduino/boardManager.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ export class BoardManager {
202202
.find((_plat) => _plat.architecture === plat.architecture && _plat.package.name === plat.package.name);
203203
if (addedPlatform) {
204204
// union boards from all versions.
205-
addedPlatform.boards = util.union(addedPlatform.boards, plat.boards, (a, b) => {
206-
return a.name === b.name;
207-
});
208-
addedPlatform.versions.push(plat.version);
205+
// We should not union boards: https://github.com/Microsoft/vscode-arduino/issues/414
206+
// addedPlatform.boards = util.union(addedPlatform.boards, plat.boards, (a, b) => {
207+
// return a.name === b.name;
208+
// });
209+
// addedPlatform.versions.push(plat.version);
209210
} else {
210211
plat.versions = [plat.version];
211212
// Clear the version information since the plat will be used to contain all supported versions.

0 commit comments

Comments
 (0)