Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: Include null in the type for optional settings #20192

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

maxdeviant
Copy link
Member

This PR updates all settings that are defined as Options to include null in their type.

This prevents warnings from being displayed when null is used a default value.

Closes #18006.

Release Notes:

  • Updated the settings schema to allow null as a value for optional settings instead of showing a warning.

@maxdeviant maxdeviant self-assigned this Nov 4, 2024
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 4, 2024
@maxdeviant maxdeviant changed the title settings: Include null for optional settings settings: Include null in the type for optional settings Nov 4, 2024
@maxdeviant maxdeviant merged commit 8196db6 into main Nov 4, 2024
10 checks passed
@maxdeviant maxdeviant deleted the marshall/allow-null-for-optional-settings branch November 4, 2024 19:25
CharlesChen0823 pushed a commit to CharlesChen0823/zed that referenced this pull request Nov 18, 2024
…tries#20192)

This PR updates all settings that are defined as `Option`s to include
`null` in their type.

This prevents warnings from being displayed when `null` is used a
default value.

Closes zed-industries#18006.

Release Notes:

- Updated the settings schema to allow `null` as a value for optional
settings instead of showing a warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor Issue - Default Settings - Incorrect types
1 participant