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

zed-editor: fix always generating settings.json #6201

Closed
wants to merge 1 commit into from

Conversation

DaRacci
Copy link
Contributor

@DaRacci DaRacci commented Dec 12, 2024

Description

Makes it so settings.json no longer gets made by ensuring it can be empty as expected when there are no extensions or userSettings defined.

Previously settings.json would always be generated because even if there were no extensions defined an empty value would still be made.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all or nix develop --ignore-environment .#all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@libewa

Fixes #6193

Makes it so settings.json no longer gets made by ensuring it can be empty as expected when there are no extensions or userSettings defined.
@DaRacci
Copy link
Contributor Author

DaRacci commented Dec 12, 2024

I've attempted to run the tests but have received the following error which i dont believe has anything to do with my changes but I'm not sure why is failing.

image

rycee pushed a commit that referenced this pull request Dec 13, 2024
Makes it so settings.json no longer gets made by ensuring it can be
empty as expected when there are no extensions or userSettings
defined.

PR #6201
@rycee
Copy link
Member

rycee commented Dec 13, 2024

Thanks! Rebased to master in 66c5d8b 🙂

@rycee rycee closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: HM always writes settings.json for zed
2 participants