Pārlūkot izejas kodu

Adds tooltips to settings for education

main
Eric Amodio pirms 3 gadiem
vecāks
revīzija
5af13f7a3b
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. +12
    -0
      src/webviews/apps/settings/settings.ts

+ 12
- 0
src/webviews/apps/settings/settings.ts Parādīt failu

@ -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() {

Notiek ielāde…
Atcelt
Saglabāt