Skip to content

Snippet extension not working when installed from marketplace #3400

@lsdanii

Description

@lsdanii

My Snippet extension flutter-snippets works perfectly when installed as dev extension (no need to manually copy snippets to ~/.config/zed/snippets, however fails to function when installed from the Zed marketplace.

Steps to Reproduce
Dev Extension (working case):

  1. Create a snippet extension with the following structure:
flutter-snippets/
   ├── extension.toml
   ├── snippets/
   │   └── dart.json
   └── README.md
  1. Extension configuration (extension.toml):
   id = "flutter-snippets"
   # ..
   repository = "https://github.com/luisdanieldlcg/flutter-snippets"
   snippets = "./snippets/dart.json"
  1. Open Zed → Extensions → "Install Dev Extension" → Select the extension directory
  2. Open a Dart file and try typing a snippet prefix → ✅ Snippets work correctly

Not Working Case (Marketplace Extension):
When using the published extension to the Zed marketplace:

  1. Open Zed → Extensions → Search for "Flutter Snippets" → Install from marketplace
  2. Open a Dart file and try typing a snippet prefix → ❌ Snippets don't work

Workaround
Users can manually copy the dart.json file from the extension repository to ~/.config/zed/snippets/dart.json to make the snippets work. But the fact that it works as a dev extension makes the thing it should probably work without doing that.

System:
Linux 6.16.7-200.fc42.x86_64 (Fedora 42)
zed -v
Zed 0.204.4 529fb5ff3012ddee7ede7058bad3e845f2011f29

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions