Skip to content

Commit

Permalink
Fix microsoft#55767 - leaking style elements from settings editor
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 3, 2018
1 parent 6bcabde commit b54c8ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/preferences/browser/settingsTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ export class SettingsTree extends NonExpandableTree {
controller,
accessibilityProvider: instantiationService.createInstance(SettingsAccessibilityProvider),
filter: instantiationService.createInstance(SettingsTreeFilter, viewState),
styler: new DefaultTreestyler(DOM.createStyleSheet(), treeClass),
styler: new DefaultTreestyler(DOM.createStyleSheet(container), treeClass),

...configuration
};
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/preferences/browser/tocTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class TOCTree extends WorkbenchTree {
const fullConfiguration = <ITreeConfiguration>{
controller: instantiationService.createInstance(WorkbenchTreeController, { openMode: OpenMode.DOUBLE_CLICK }),
filter: instantiationService.createInstance(SettingsTreeFilter, viewState),
styler: new DefaultTreestyler(DOM.createStyleSheet(), treeClass),
styler: new DefaultTreestyler(DOM.createStyleSheet(container), treeClass),
dataSource: instantiationService.createInstance(TOCDataSource),
accessibilityProvider: instantiationService.createInstance(SettingsAccessibilityProvider),

Expand Down

0 comments on commit b54c8ef

Please sign in to comment.