Skip to content

Conversation

@andre4ik3
Copy link
Contributor

Description

Updated version of #5948 with added support for Darwin. Also reformatted some
commit messages. (I preserved the commit history, let me know if I should
squash everything into 1-2 commits)

Closes #5948

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • 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.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@RossBrunton
Copy link
Contributor

Thanks for picking this up.

@andre4ik3
Copy link
Contributor Author

I switched to a hybrid approach to avoid IFD - now it will use preset names for products that are known ahead of time, and otherwise fall back to IFD if it's not known.

@andre4ik3 andre4ik3 force-pushed the product branch 2 times, most recently from 5357528 to ed5d39f Compare October 4, 2025 04:02
@andre4ik3
Copy link
Contributor Author

Also updated the tests. It will run the tests once with a known vscode package once, then if IFD is enabled, again with an unknown test-vscode-unknown package.

RossBrunton and others added 2 commits October 4, 2025 12:18
The VSCode packages contain a product.json which is used to determine
the extension and config dirs. When the package name is not known,
this change parses this file (using IFD) (which may appear in a few
places) and uses that to generate the paths.

This hopefully allows more VSCode derivatives to "just work" without
Home Manager updates.

Co-authored-by: andre4ik3 <[email protected]>
@rycee rycee merged commit 5f06cea into nix-community:master Oct 4, 2025
3 of 4 checks passed
@rycee
Copy link
Member

rycee commented Oct 4, 2025

Thanks! Merged to master now 🙂

@andre4ik3 andre4ik3 deleted the product branch October 4, 2025 17:51
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.

3 participants