Skip to content

Snippet files copied into snippets folder not recognized #23318

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

Open
1 task done
neurodynamic opened this issue Jan 18, 2025 · 1 comment
Open
1 task done

Snippet files copied into snippets folder not recognized #23318

neurodynamic opened this issue Jan 18, 2025 · 1 comment

Comments

@neurodynamic
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I copied over my snippet files from VSCode when I installed Zed, but snippets from the copied files (i.e. a copied-in typescript.json in ~/.config/zed/snippets) would not show up in autocompletion, even though opening the file via the snippets: configure snippets menu confirmed that it was the correct file in the correct location.

However, when I deleted those same files, then selected snippets: configure snippets and the same language from the options, and pasted the exact same content into a new, identically-named file created that way, the snippets started showing up as normal. It seems like, somehow, snippet files will not be recognized by Zed unless they are created via the editor.

Zed Version and System Specs

Zed: v0.169.2 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: aarch64

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@conradwt
Copy link

conradwt commented Apr 2, 2025

@neurodynamic I was able to migrate both Elixir and HEEx snippets zed by doing the following:

  1. Command + Shift + P
  2. Type: snippets: configure snippets
  3. Select snippet scope: Elixir
  4. Then I just copied the associated snippet from VScode to Zed.
  5. Then repeated the above steps for HEEx

I haven't been able to go through all the snippets but the ones that I did try work as expected.

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

No branches or pull requests

3 participants