Skip to content

Commit

Permalink
Use default hideOnHover behaviour in WorkbenchHoverDelegate (#207051)
Browse files Browse the repository at this point in the history
hideOnHover default behaviour WorkbenchHoverDelegate
  • Loading branch information
benibenj authored Mar 7, 2024
1 parent e563009 commit 1517ee8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/vs/platform/hover/browser/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ export class WorkbenchHoverDelegate extends Disposable implements IHoverDelegate
...options,
...overrideOptions,
persistence: {
hideOnHover: true,
hideOnKeyDown: true,
...overrideOptions.persistence
},
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/views/treeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
@IInstantiationService instantiationService: IInstantiationService,
) {
super();
this._hoverDelegate = this._register(instantiationService.createInstance(WorkbenchHoverDelegate, 'mouse', false, { persistence: undefined /* use default persistence behaviour */ }));
this._hoverDelegate = this._register(instantiationService.createInstance(WorkbenchHoverDelegate, 'mouse', false, {}));
this._register(this.themeService.onDidFileIconThemeChange(() => this.rerender()));
this._register(this.themeService.onDidColorThemeChange(() => this.rerender()));
this._register(checkboxStateHandler.onDidChangeCheckboxState(items => {
Expand Down

0 comments on commit 1517ee8

Please sign in to comment.