Skip to content

Commit 20e692d

Browse files
author
Miguel Solorio
authored
Add icon for deprecated messages in the settings ui (microsoft#135044)
1 parent 2aa3408 commit 20e692d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@
382382
}
383383

384384
.settings-editor > .settings-body > .settings-tree-container .setting-item-contents.is-deprecated .setting-item-deprecation-message {
385-
display: block;
385+
display: flex;
386+
}
387+
388+
.settings-editor > .settings-body > .settings-tree-container .setting-item-contents.is-deprecated .setting-item-deprecation-message .codicon {
389+
margin-right: 4px;
386390
}
387391

388392
.settings-editor > .settings-body > .settings-tree-container .setting-item-contents .setting-item-description {

src/vs/workbench/contrib/preferences/browser/settingsTree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ export abstract class AbstractSettingRenderer extends Disposable implements ITre
868868
} else {
869869
template.deprecationWarningElement.innerText = deprecationText;
870870
}
871+
template.deprecationWarningElement.prepend($('.codicon.codicon-error'));
871872
template.containerElement.classList.toggle('is-deprecated', !!deprecationText);
872873

873874
this.renderValue(element, <ISettingItemTemplate>template, onChange);

0 commit comments

Comments
 (0)