Files
arduino-ide/arduino-ide-extension/src/browser/theia/preferences/preference-editor-widget.ts
Akos Kitta 5cb9166c83 Implemented filter and update all for libs/boards.
Closes #177
Closes #1188

Co-authored-by: Francesco Spissu <f.spissu@arduino.cc>
Co-authored-by: Per Tillisch <p.tillisch@arduino.cc>
Co-authored-by: Akos Kitta <a.kitta@arduino.cc>

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
2022-08-31 10:07:27 +02:00

20 lines
762 B
TypeScript

import { injectable } from '@theia/core/shared/inversify';
import { PreferencesEditorWidget as TheiaPreferencesEditorWidget } from '@theia/preferences/lib/browser/views/preference-editor-widget';
@injectable()
export class PreferencesEditorWidget extends TheiaPreferencesEditorWidget {
protected override resetScroll(
nodeIDToScrollTo?: string,
filterWasCleared = false
): void {
if (this.scrollBar) {
// Absent on widget creation
this.doResetScroll(nodeIDToScrollTo, filterWasCleared);
} else {
// NOOP
// Unlike Theia, IDE2 does not start multiple tasks to check if the scrollbar is ready to reset it.
// If the "scroll reset" request arrived before the existence of the scrollbar, what to reset?
}
}
}