Skip to content

Commit 0a6f5ae

Browse files
committed
Fixes #7160: Render the current line highlight also when the editor is not focused
1 parent 4fc360c commit 0a6f5ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
box-sizing: border-box;
1212
}
1313

14-
.monaco-editor.vs.focused .current-line {
14+
.monaco-editor.vs .current-line {
1515
border: 2px solid #eee;
1616
}
1717

18-
.monaco-editor.vs-dark.focused .current-line {
18+
.monaco-editor.vs-dark .current-line {
1919
border: 2px solid #282828;
2020
}
2121

22-
.monaco-editor.hc-black.focused .current-line {
22+
.monaco-editor.hc-black .current-line {
2323
border: 2px solid #f38518;
2424
}

src/vs/workbench/services/themes/electron-browser/themeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function _processThemeObject(themeId: string, themeDocument: ThemeDocument): str
372372
}
373373
if (editorSettings.lineHighlight) {
374374
let lineHighlight = new Color(editorSettings.lineHighlight);
375-
cssRules.push(`.monaco-editor.${themeSelector}.focused .current-line { background-color: ${lineHighlight}; border:0; }`);
375+
cssRules.push(`.monaco-editor.${themeSelector} .current-line { background-color: ${lineHighlight}; border:0; }`);
376376
}
377377
if (editorSettings.caret) {
378378
let caret = new Color(editorSettings.caret);

0 commit comments

Comments
 (0)