Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7ffd748

Browse files
feat: use Arduino CLI 1.0.0
1 parent 50af09f commit 7ffd748

26 files changed

+10113
-1867
lines changed

‎arduino-ide-extension/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
],
171171
"arduino": {
172172
"arduino-cli": {
173-
"version": "0.36.0-rc.1"
173+
"version": "1.0.0"
174174
},
175175
"arduino-fwuploader": {
176176
"version": "2.4.1"

‎arduino-ide-extension/src/node/boards-service-impl.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function createBoardsPackage(
585585
if (!actualRelease) {
586586
return undefined;
587587
}
588-
const { name, typeList, boardsList, deprecated, compatible } = actualRelease;
588+
const { name, typesList, boardsList, deprecated, compatible } = actualRelease;
589589
if (!compatible) {
590590
return undefined; // never show incompatible platforms
591591
}
@@ -602,7 +602,7 @@ function createBoardsPackage(
602602
),
603603
description: boardsList.map(({ name }) => name).join(', '),
604604
boards: boardsList,
605-
types: typeList,
605+
types: typesList,
606606
moreInfoLink: website,
607607
author: maintainer,
608608
deprecated,

‎arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/board_pb.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ export class BoardListResponse extends jspb.Message {
384384
getPortsList(): Array<DetectedPort>;
385385
setPortsList(value: Array<DetectedPort>): BoardListResponse;
386386
addPorts(value?: DetectedPort, index?: number): DetectedPort;
387+
clearWarningsList(): void;
388+
getWarningsList(): Array<string>;
389+
setWarningsList(value: Array<string>): BoardListResponse;
390+
addWarnings(value: string, index?: number): string;
387391

388392
serializeBinary(): Uint8Array;
389393
toObject(includeInstance?: boolean): BoardListResponse.AsObject;
@@ -398,6 +402,7 @@ export class BoardListResponse extends jspb.Message {
398402
export namespace BoardListResponse {
399403
export type AsObject = {
400404
portsList: Array<DetectedPort.AsObject>,
405+
warningsList: Array<string>,
401406
}
402407
}
403408

‎arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/board_pb.js‎

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,7 @@ proto.cc.arduino.cli.commands.v1.BoardListRequest.prototype.setFqbn = function(v
33873387
* @private {!Array<number>}
33883388
* @const
33893389
*/
3390-
proto.cc.arduino.cli.commands.v1.BoardListResponse.repeatedFields_ = [1];
3390+
proto.cc.arduino.cli.commands.v1.BoardListResponse.repeatedFields_ = [1,2];
33913391

33923392

33933393

@@ -3421,7 +3421,8 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.toObject = function
34213421
proto.cc.arduino.cli.commands.v1.BoardListResponse.toObject = function(includeInstance, msg) {
34223422
var f, obj = {
34233423
portsList: jspb.Message.toObjectList(msg.getPortsList(),
3424-
proto.cc.arduino.cli.commands.v1.DetectedPort.toObject, includeInstance)
3424+
proto.cc.arduino.cli.commands.v1.DetectedPort.toObject, includeInstance),
3425+
warningsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
34253426
};
34263427

34273428
if (includeInstance) {
@@ -3463,6 +3464,10 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.deserializeBinaryFromReader =
34633464
reader.readMessage(value,proto.cc.arduino.cli.commands.v1.DetectedPort.deserializeBinaryFromReader);
34643465
msg.addPorts(value);
34653466
break;
3467+
case 2:
3468+
var value = /** @type {string} */ (reader.readString());
3469+
msg.addWarnings(value);
3470+
break;
34663471
default:
34673472
reader.skipField();
34683473
break;
@@ -3500,6 +3505,13 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.serializeBinaryToWriter = fun
35003505
proto.cc.arduino.cli.commands.v1.DetectedPort.serializeBinaryToWriter
35013506
);
35023507
}
3508+
f = message.getWarningsList();
3509+
if (f.length > 0) {
3510+
writer.writeRepeatedString(
3511+
2,
3512+
f
3513+
);
3514+
}
35033515
};
35043516

35053517

@@ -3541,6 +3553,43 @@ proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.clearPortsList = fu
35413553
};
35423554

35433555

3556+
/**
3557+
* repeated string warnings = 2;
3558+
* @return {!Array<string>}
3559+
*/
3560+
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.getWarningsList = function() {
3561+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
3562+
};
3563+
3564+
3565+
/**
3566+
* @param {!Array<string>} value
3567+
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
3568+
*/
3569+
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.setWarningsList = function(value) {
3570+
return jspb.Message.setField(this, 2, value || []);
3571+
};
3572+
3573+
3574+
/**
3575+
* @param {string} value
3576+
* @param {number=} opt_index
3577+
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
3578+
*/
3579+
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.addWarnings = function(value, opt_index) {
3580+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3581+
};
3582+
3583+
3584+
/**
3585+
* Clears the list making it empty but non-null.
3586+
* @return {!proto.cc.arduino.cli.commands.v1.BoardListResponse} returns this
3587+
*/
3588+
proto.cc.arduino.cli.commands.v1.BoardListResponse.prototype.clearWarningsList = function() {
3589+
return this.setWarningsList([]);
3590+
};
3591+
3592+
35443593

35453594
/**
35463595
* List of repeated fields within this message type.

‎arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/commands_grpc_pb.d.ts‎

Lines changed: 96 additions & 62 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /