From 33d8569adf14370e7e8036d438ad35d47da137c7 Mon Sep 17 00:00:00 2001 From: grey275 Date: Wed, 20 Nov 2019 08:39:26 -0800 Subject: [PATCH] cange condition on outline tree refiltering to bring it in line with new OutlineFilter implementation --- src/vs/workbench/contrib/outline/browser/outlinePanel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/outline/browser/outlinePanel.ts b/src/vs/workbench/contrib/outline/browser/outlinePanel.ts index 67503e0a4d39d..2b93ee7c07d68 100644 --- a/src/vs/workbench/contrib/outline/browser/outlinePanel.ts +++ b/src/vs/workbench/contrib/outline/browser/outlinePanel.ts @@ -372,7 +372,9 @@ export class OutlinePanel extends ViewletPanel { if (e.affectsConfiguration(OutlineConfigKeys.icons)) { this._tree.updateChildren(); } - if (e.affectsConfiguration('outline')) { + // This is a temporary solution to try and minimize refilters while + // ConfigurationChangeEvents only provide the first section of the config path. + if (e.affectedKeys.some(key => key.search(/(outline|\[\w+\])/))) { this._tree.refilter(); } }));