瀏覽代碼

Adds tooltips to settings for education

main
Eric Amodio 3 年之前
父節點
當前提交
5af13f7a3b
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      src/webviews/apps/settings/settings.ts

+ 12
- 0
src/webviews/apps/settings/settings.ts 查看文件

@ -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…
取消
儲存