提交 5b6400ac 编写于 作者: R Rob Lourens

Settings editor - fix "also modified in", only show "also" when modified in current scope

上级 7a0aafcb
......@@ -493,11 +493,13 @@ export class SettingsRenderer implements IRenderer {
}));
template.toDispose.push(resetButton);
const alsoConfiguredInLabel = localize('alsoConfiguredIn', "Also modified in:");
const configuredInLabel = element.isConfigured ?
localize('alsoConfiguredIn', "Also modified in:") :
localize('configuredIn', "Modified in:");
let overridesElementText = element.isConfigured ? 'Modified ' : '';
if (element.overriddenScopeList.length) {
overridesElementText = overridesElementText + `(${alsoConfiguredInLabel} ${element.overriddenScopeList.join(', ')})`;
overridesElementText = overridesElementText + `(${configuredInLabel} ${element.overriddenScopeList.join(', ')})`;
}
template.overridesElement.textContent = overridesElementText;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册