From 86e7cc65e4b90bead9635a0521ed71cc35b7af23 Mon Sep 17 00:00:00 2001 From: Colin Grant Date: Wed, 22 Feb 2023 13:48:54 -0700 Subject: [PATCH 1/2] Do not (re)store state of Open Editors --- .../open-editors-widget/navigator-open-editors-widget.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx b/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx index 5149cfcd48457..451a16e0026ee 100644 --- a/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx +++ b/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx @@ -265,4 +265,7 @@ export class OpenEditorsWidget extends AbstractNavigatorTreeWidget { } return this.props.leftPadding; } + + override storeState(): object { return {}; } + override restoreState(): void { } } From fd462692245c0ca3a37ebed5d34e6848b121189a Mon Sep 17 00:00:00 2001 From: Colin Grant Date: Wed, 22 Feb 2023 14:22:06 -0700 Subject: [PATCH 2/2] Add a comment --- .../open-editors-widget/navigator-open-editors-widget.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx b/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx index 451a16e0026ee..2b4e26b1ac8df 100644 --- a/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx +++ b/packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx @@ -266,6 +266,7 @@ export class OpenEditorsWidget extends AbstractNavigatorTreeWidget { return this.props.leftPadding; } + // The state of this widget is derived from external factors. No need to store or restore it. override storeState(): object { return {}; } override restoreState(): void { } }