Skip to content

Commit d430ffd

Browse files
committed
Apply inputValidation.errorForeground (fixes microsoft#99573)
1 parent 39c361c commit d430ffd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/base/parts/quickinput/browser/quickInput.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,12 @@ class QuickInput extends Disposable implements IQuickInput {
353353
this.ui.inputBox.showDecoration(severity);
354354
if (severity === Severity.Error) {
355355
const styles = this.ui.inputBox.stylesForType(severity);
356+
this.ui.message.style.color = styles.foreground ? `${styles.foreground}` : '';
356357
this.ui.message.style.backgroundColor = styles.background ? `${styles.background}` : '';
357358
this.ui.message.style.border = styles.border ? `1px solid ${styles.border}` : '';
358359
this.ui.message.style.paddingBottom = '4px';
359360
} else {
361+
this.ui.message.style.color = '';
360362
this.ui.message.style.backgroundColor = '';
361363
this.ui.message.style.border = '';
362364
this.ui.message.style.paddingBottom = '';

0 commit comments

Comments
 (0)