diff --git a/src/vs/editor/common/view/editorColorRegistry.ts b/src/vs/editor/common/view/editorColorRegistry.ts index e1760f7d32dca40eebc5f26f1c77c7401f9665a0..662f89656a815fb3cfc93f986c4413eb34b3ad94 100644 --- a/src/vs/editor/common/view/editorColorRegistry.ts +++ b/src/vs/editor/common/view/editorColorRegistry.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import nls = require('vs/nls'); -import { registerColor, editorBackground, activeContrastBorder } from 'vs/platform/theme/common/colorRegistry'; +import { registerColor, editorBackground, activeContrastBorder, editorForeground } from 'vs/platform/theme/common/colorRegistry'; import { registerThemingParticipant } from 'vs/platform/theme/common/themeService'; import { Color } from 'vs/base/common/color'; @@ -27,6 +27,10 @@ registerThemingParticipant((theme, collector) => { if (background) { collector.addRule(`.monaco-editor.${theme.selector} .monaco-editor-background { background-color: ${background}; }`); } + let foreground = theme.getColor(editorForeground); + if (foreground) { + collector.addRule(`.monaco-editor.${theme.selector}, .monaco-editor.${theme.selector} .inputarea { color: ${foreground}; }`); + } let rangeHighlight = theme.getColor(editorRangeHighlight); if (rangeHighlight) {