mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-08 18:08:33 +00:00
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>
20 lines
762 B
TypeScript
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?
|
|
}
|
|
}
|
|
}
|