File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
arduino-ide-extension/src/common/protocol Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,7 @@ export interface BoardListItemWithBoard extends BoardListItem {
123123 readonly board : BoardIdentifier ;
124124}
125125
126- export function isBoardListItemWithBoard (
127- arg : unknown
128- ) : arg is BoardListItemWithBoard {
129- return isBoardListItem ( arg ) && Boolean ( arg . board ) ;
130- }
131-
132- export function getBoardOrInferredBoard (
126+ function getBoardOrInferredBoard (
133127 item : BoardListItem
134128) : BoardIdentifier | undefined {
135129 let board : BoardIdentifier | undefined = undefined ;
@@ -199,7 +193,9 @@ function isInferenceType(arg: unknown): arg is InferenceType {
199193 * 1. `BoardListItem#board`:
200194 * 1. Items with `'arduino'` vendor ID in the `fqbn` come before other vendors.
201195 * 1. Natural compare of the `name`.
202- * 1. If the `BoardListItem`s do not have a `board` property, `BoardListItem#port#address` natural compare is the fallback.
196+ * 1. If the `BoardListItem`s do not have a `board` property:
197+ * 1. Ambiguous boards come before no boards.
198+ * 1. `BoardListItem#port#address` natural compare is the fallback.
203199 */
204200function boardListItemComparator (
205201 left : BoardListItem ,
You can’t perform that action at this time.
0 commit comments