Skip to content

Commit fd9e6f7

Browse files
put deprecated items at the bottom of the list
1 parent 9f82175 commit fd9e6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-ide-extension/src/browser/widgets/component-list/list-widget.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ export abstract class ListWidget<
146146
const aIsArduinoType = left.types.includes('Arduino');
147147
const bIsArduinoType = right.types.includes('Arduino');
148148

149-
if (aIsArduinoType && !bIsArduinoType) {
149+
if (aIsArduinoType && !bIsArduinoType && !left.deprecated) {
150150
return -1;
151151
}
152152

153-
if (!aIsArduinoType && bIsArduinoType) {
153+
if (!aIsArduinoType && bIsArduinoType && !right.deprecated) {
154154
return 1;
155155
}
156156

0 commit comments

Comments
 (0)