()
| 741 | }; |
| 742 | |
| 743 | const updateScopeSummary = () => { |
| 744 | const hintSource = normalizeSourceId(currentChatLocation().sourceId); |
| 745 | const hintFolder = normalizeFolderPath(currentChatLocation().rootPath); |
| 746 | const currentWorkspace = workspace(); |
| 747 | if (scopeSummaryEl) { |
| 748 | scopeSummaryEl.textContent = `Here ${hintSource}:${hintFolder} | Scope ${currentWorkspace.sourceId}:${currentWorkspace.rootPath}`; |
| 749 | } |
| 750 | if (metaEl) { |
| 751 | const providerSetting = config?.settings?.providers; |
| 752 | const providerRows = Array.isArray(providerSetting) |
| 753 | ? providerSetting |
| 754 | : ((providerSetting && typeof providerSetting === 'object') ? Object.values(providerSetting) : []); |
| 755 | const providerNames = providerRows |
| 756 | .map((row) => (row && typeof row === 'object') ? String(row.name || '').trim() : '') |
| 757 | .filter((name) => name !== ''); |
| 758 | const providerText = providerNames.length > 0 ? providerNames.join(', ') : 'none'; |
| 759 | const modeText = config?.settings?.readOnlyMode ? 'read-only' : 'write-enabled'; |
| 760 | const profileLabel = String(copilotProfileMap.get(copilotProfile)?.label || copilotProfile).trim(); |
| 761 | metaEl.textContent = `${profileLabel} | ${providerText} | ${modeText} | ${currentWorkspace.sourceId}:${currentWorkspace.rootPath}`; |
| 762 | } |
| 763 | renderRecipeRail(); |
| 764 | renderTips(); |
| 765 | }; |
| 766 | |
| 767 | const applyTheme = () => { |
| 768 | const dark = isDarkModeEnabled(); |
no test coverage detected