Skip to content

Commit

Permalink
feat(dev): can reset board list history
Browse files Browse the repository at this point in the history
  • Loading branch information
Akos Kitta committed Jul 26, 2023
1 parent 5fd5b0e commit e9004b0
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ export class BoardsServiceProvider
this.outputChannel.append(this._boardList.toString() + '\n');
},
});
registry.registerCommand(CLEAR_BOARD_LIST_HISTORY, {
execute: () => {
this.refreshBoardList({ boardListHistory: {} });
},
});
}

tasks(): StartupTask[] {
Expand Down Expand Up @@ -431,3 +436,9 @@ const DUMP_BOARD_LIST: Command = {
label: 'Dump Board List', // TODO: if remains in IDE2, add translations.
category: 'Developer (Arduino)',
};

const CLEAR_BOARD_LIST_HISTORY: Command = {
id: 'arduino-clear-board-list-history',
label: 'Clear Board List History', // TODO: if remains in IDE2, add translations.
category: 'Developer (Arduino)',
};

0 comments on commit e9004b0

Please sign in to comment.