Profiles Schema: "null" is not allowed for "background" but it is #4135

Closed
opened 2026-01-30 23:39:05 +00:00 by claunia · 0 comments
Owner

Originally created by @skrysm on GitHub (Sep 29, 2019).

Originally assigned to: @cinnamon-msft on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version (if applicable): 0.5.2681.0

Any other software?
Visual Studio Code: 1.38.1

Steps to reproduce

  1. Open profiles.json in Visual Studio Code
  2. In one of the profiles with a default background color (e.g. the one for PowerShell) add: "background": null,
  3. In Windows Terminal, observe how the background color of this profile is reset to the one of its colorScheme.

Expected behavior

I should not get a schema warning about using null for background.

Actual behavior

I get the following schema warning:

Incorrect type. Expected "string".

Originally created by @skrysm on GitHub (Sep 29, 2019). Originally assigned to: @cinnamon-msft on GitHub. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.356] Windows Terminal version (if applicable): 0.5.2681.0 Any other software? Visual Studio Code: 1.38.1 ``` # Steps to reproduce 1. Open `profiles.json` in Visual Studio Code 1. In one of the profiles with a default background color (e.g. the one for PowerShell) add: `"background": null,` 1. In Windows Terminal, observe how the background color of this profile is reset to the one of its `colorScheme`. # Expected behavior I should not get a schema warning about using `null` for `background`. # Actual behavior I get the following schema warning: > Incorrect type. Expected "string".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4135