From d430ffd9cd143308ae54ee581a86cc17edce51d5 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Mon, 29 Jun 2020 15:00:06 +0200 Subject: [PATCH] Apply inputValidation.errorForeground (fixes #99573) --- src/vs/base/parts/quickinput/browser/quickInput.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/base/parts/quickinput/browser/quickInput.ts b/src/vs/base/parts/quickinput/browser/quickInput.ts index f8079252626..1ea2306b980 100644 --- a/src/vs/base/parts/quickinput/browser/quickInput.ts +++ b/src/vs/base/parts/quickinput/browser/quickInput.ts @@ -353,10 +353,12 @@ class QuickInput extends Disposable implements IQuickInput { this.ui.inputBox.showDecoration(severity); if (severity === Severity.Error) { const styles = this.ui.inputBox.stylesForType(severity); + this.ui.message.style.color = styles.foreground ? `${styles.foreground}` : ''; this.ui.message.style.backgroundColor = styles.background ? `${styles.background}` : ''; this.ui.message.style.border = styles.border ? `1px solid ${styles.border}` : ''; this.ui.message.style.paddingBottom = '4px'; } else { + this.ui.message.style.color = ''; this.ui.message.style.backgroundColor = ''; this.ui.message.style.border = ''; this.ui.message.style.paddingBottom = ''; -- GitLab