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

Improve keymap json schema #23044

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Improve keymap json schema #23044

merged 2 commits into from
Jan 13, 2025

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Jan 13, 2025

Also:

  • Adds impl_internal_actions! for deriving the Action trait without registering.

  • Removes some deserializers that immediately fail in favor of #[serde(skip)] on fields where they were used. This also omits them from the schema.

Release Notes:

  • Keymap settings file now has more JSON schema information to inform json-language-server completions and info, particularly for actions that take input.

Only behavioral change is that now it knows about the types involved in array representation for actions that take data.
Also:

* Adds `impl_internal_actions!` for deriving the `Action` trait without registering.

* Removes some deserializers that immediately fail in favor of `#[serde(skip)]` on fields where they were used. This also omits them from the schema.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 13, 2025
@mgsloan mgsloan enabled auto-merge January 13, 2025 02:26
@mgsloan mgsloan added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit 6aba395 Jan 13, 2025
14 checks passed
@mgsloan mgsloan deleted the improve-keymap-json-schema branch January 13, 2025 02:48
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.

1 participant