Skip to content

Commit

Permalink
Switch from setupCustomHover to hoverService
Browse files Browse the repository at this point in the history
Ref #159088
By switching to hoverService, we get to customize the hover widget
more for the Settings editor indicators.
  • Loading branch information
rzhao271 committed Nov 16, 2022
1 parent 04ef3da commit 10fe16b
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/vs/base/common/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ export class IntervalTimer implements IDisposable {
}
}

export class RunOnceScheduler {
export class RunOnceScheduler implements IDisposable {

protected runner: ((...args: unknown[]) => void) | null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
overflow: hidden;
text-overflow: ellipsis;
display: inline-block; /* size to contents for hover to show context button */
padding-bottom: 2px; /* so that focus outlines wrap around nicely for indicators, especially ones with codicons */
}

.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-modified-indicator {
Expand All @@ -368,7 +369,7 @@
bottom: 23px;
}

.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title > .misc-label {
.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title > .setting-indicators-container {
font-style: italic;
}

Expand All @@ -379,8 +380,8 @@
opacity: 0.9;
}

.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title > .misc-label .setting-indicator:hover {
text-decoration: underline;
.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title > .setting-indicators-container .setting-indicator {
padding-bottom: 2px;
}

.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-title .codicon {
Expand Down
Loading

0 comments on commit 10fe16b

Please sign in to comment.