Skip to content

Commit e9004b0

Browse files
author
Akos Kitta
committed
feat(dev): can reset board list history
1 parent 5fd5b0e commit e9004b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ export class BoardsServiceProvider
155155
this.outputChannel.append(this._boardList.toString() + '\n');
156156
},
157157
});
158+
registry.registerCommand(CLEAR_BOARD_LIST_HISTORY, {
159+
execute: () => {
160+
this.refreshBoardList({ boardListHistory: {} });
161+
},
162+
});
158163
}
159164

160165
tasks(): StartupTask[] {
@@ -431,3 +436,9 @@ const DUMP_BOARD_LIST: Command = {
431436
label: 'Dump Board List', // TODO: if remains in IDE2, add translations.
432437
category: 'Developer (Arduino)',
433438
};
439+
440+
const CLEAR_BOARD_LIST_HISTORY: Command = {
441+
id: 'arduino-clear-board-list-history',
442+
label: 'Clear Board List History', // TODO: if remains in IDE2, add translations.
443+
category: 'Developer (Arduino)',
444+
};

0 commit comments

Comments
 (0)