Skip to content

Commit

Permalink
SCM - remove duplicate check code (microsoft#219826)
Browse files Browse the repository at this point in the history
SCM - remove duplicate check
  • Loading branch information
lszomoru authored and aaronchucarroll committed Jul 10, 2024
1 parent 45c0ca8 commit 600a7cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4237,6 +4237,7 @@ registerThemingParticipant((theme, collector) => {
// Override inactive selection bg
const inputBackgroundColor = theme.getColor(inputBackground);
if (inputBackgroundColor) {
collector.addRule(`.scm-view .scm-editor-container .monaco-editor-background { background-color: ${inputBackgroundColor}; } `);
collector.addRule(`.scm-view .scm-editor-container .monaco-editor .selected-text { background-color: ${inputBackgroundColor.transparent(0.4)}; }`);
}

Expand All @@ -4246,10 +4247,6 @@ registerThemingParticipant((theme, collector) => {
collector.addRule(`.scm-view .scm-editor-container .monaco-editor .view-line span.inline-selected-text { color: ${inputForegroundColor}; }`);
}

const backgroundColor = theme.getColor(inputBackground);
if (backgroundColor) {
collector.addRule(`.scm-view .scm-editor-container .monaco-editor-background { background-color: ${backgroundColor}; } `);
}
collector.addRule(`.scm-view .scm-editor-container .monaco-editor .focused .selected-text { background-color: ${selectionBackgroundColor}; }`);
} else {
// Use editor selection color if theme has not set a selection background color
Expand Down

0 comments on commit 600a7cc

Please sign in to comment.