Skip to content

Commit

Permalink
cange condition on outline tree refiltering to bring it in line with …
Browse files Browse the repository at this point in the history
…new OutlineFilter implementation
  • Loading branch information
petevdp committed Nov 20, 2019
1 parent 9497acd commit 33d8569
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/contrib/outline/browser/outlinePanel.ts
Expand Up @@ -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();
}
}));
Expand Down

0 comments on commit 33d8569

Please sign in to comment.