Skip to content

Commit d3da28e

Browse files
author
Akos Kitta
committed
fix: better naming
1 parent 0d734ea commit d3da28e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduino-ide-extension/src/browser/boards/boards-service-provider.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class BoardsServiceProvider
205205
.finally(() => this._ready.resolve());
206206
}
207207

208-
private async maybeUpdateSelectedBoard(event: {
208+
private async maybeUpdateSelectedBoard(platformDidInstallEvent: {
209209
item: BoardsPackage;
210210
}): Promise<void> {
211211
const { selectedBoard } = this._boardsConfig;
@@ -217,8 +217,8 @@ export class BoardsServiceProvider
217217
const selectedBoardPlatformId = serializePlatformIdentifier(
218218
selectedBoard.packageId
219219
);
220-
if (selectedBoardPlatformId === event.item.id) {
221-
const installedSelectedBoard = event.item.boards.find(
220+
if (selectedBoardPlatformId === platformDidInstallEvent.item.id) {
221+
const installedSelectedBoard = platformDidInstallEvent.item.boards.find(
222222
(board) => board.name === selectedBoard.name
223223
);
224224
// if the board can be found by its name after the install event select it. otherwise unselect it
@@ -231,7 +231,7 @@ export class BoardsServiceProvider
231231
'arduino/board/couldNotFindPreviouslySelected',
232232
"Could not find previously selected board '{0}' in installed platform '{1}'. Please manually reselect the board you want to use. Do you want to reselect it now?",
233233
selectedBoard.name,
234-
event.item.name
234+
platformDidInstallEvent.item.name
235235
),
236236
nls.localize('arduino/board/reselectLater', 'Reselect later'),
237237
yes

0 commit comments

Comments
 (0)