-
Notifications
You must be signed in to change notification settings - Fork 822
Open
Description
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):
- Create a snippet extension with the following structure:
flutter-snippets/
├── extension.toml
├── snippets/
│ └── dart.json
└── README.md
- Extension configuration (extension.toml):
id = "flutter-snippets"
# ..
repository = "https://github.com/luisdanieldlcg/flutter-snippets"
snippets = "./snippets/dart.json"
- Open Zed → Extensions → "Install Dev Extension" → Select the extension directory
- 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:
- Open Zed → Extensions → Search for "Flutter Snippets" → Install from marketplace
- 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
Labels
No labels