Browse Source

Adds tooltips to settings for education

main
Eric Amodio 3 years ago
parent
commit
5af13f7a3b
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      src/webviews/apps/settings/settings.ts

+ 12
- 0
src/webviews/apps/settings/settings.ts View File

@ -51,6 +51,18 @@ export class SettingsApp extends AppWithConfig {
this._observer.observe(el);
}
for (const el of document.querySelectorAll<HTMLInputElement>('[data-setting]')) {
if (!el.title && el.type === 'checkbox') {
el.title = `Setting name: "gitlens.${el.name}"`;
}
for (const label of document.querySelectorAll<HTMLLabelElement>(`label[for="${el.id}"]`)) {
if (!label.title) {
label.title = `Setting name: "gitlens.${el.name}"`;
}
}
}
}
protected override onBind() {

Loading…
Cancel
Save