Skip to content

Commit

Permalink
fix #10624
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Aug 23, 2016
1 parent 75c6fa2 commit 00c4091
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ interface ThemeSettingStyle {
fontStyle?: string;
caret?: string;
invisibles?: string;
guide?: string;
lineHighlight?: string;
selection?: string;
}
Expand Down Expand Up @@ -616,6 +617,7 @@ function _processThemeObject(themeId: string, themeDocument: ThemeDocument): str
foreground: void 0,
caret: void 0,
invisibles: void 0,
guide: void 0,
lineHighlight: void 0,
selection: void 0
};
Expand Down Expand Up @@ -669,9 +671,11 @@ function _processThemeObject(themeId: string, themeDocument: ThemeDocument): str
if (editorSettings.invisibles) {
let invisibles = new Color(editorSettings.invisibles);
cssRules.push(`.monaco-editor.${themeSelector} .token.whitespace { color: ${invisibles} !important; }`);
cssRules.push(`.monaco-editor.${themeSelector} .lines-content .cigr { background: ${invisibles}; }`);
}

if (editorSettings.guide) {
let guide = new Color(editorSettings.guide);
cssRules.push(`.monaco-editor.${themeSelector} .lines-content .cigr { background: ${guide}; }`);
}
return cssRules.join('\n');
}

Expand Down

0 comments on commit 00c4091

Please sign in to comment.