Files
arduino-ide/arduino-ide-extension/src/browser/theia
Akos Kitta 470db5606e fix: debug widget layout updates
Use customized `PanelLayout#removeWidget` and
`PanelLayout#insertWidget` logic for the layout
updates. The customized functions ensure no side
effect if adding/removing the widget to/from the
layout but it's already present/absent.

Unlike the default [`PanelLayout#removeWidget`](9f5e11025b/packages/widgets/src/panellayout.ts (L154-L156))
behavior, do not try to remove the widget if it's
not present (has a negative index). Otherwise,
required widgets might be removed based on the
default [`ArrayExt#removeAt`](9f5e11025b/packages/algorithm/src/array.ts (L1075-L1077))
behavior.

Closes: arduino/arduino-ide#2354

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
2024-02-14 13:31:37 +01:00
..
2024-02-14 13:31:37 +01:00
2024-02-14 13:31:37 +01:00
2022-06-07 13:46:29 +02:00
2023-05-09 17:37:24 +02:00
2023-09-26 10:06:47 +02:00
2022-06-07 13:46:29 +02:00
2023-09-26 10:06:47 +02:00
2023-09-26 10:06:47 +02:00