extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add leptos extension

Open probably-neb opened this issue 6 months ago • 1 comments

Hey @benwis, this is the PR to add basic support for leptos view! macro support to Zed.

It's in a pretty good state and has:

  • auto-indenting
  • highlighting (can be improved more)
  • LSP completions within rust expressions (but completions for tag attribute names are missing)
  • Tag auto-closing works when enabled (i.e. type <div> and get </div> inserted automatically)

The extension itself is at https://github.com/zed-extensions/leptos, this PR, once merged will publish the extension so that it's available in Zed, which I will do once rust: Add injection for leptos view macro (#30710) · zed-industries/zed@1fb1fec has been released in stable as it is required for this extension to work properly.

probably-neb avatar May 15 '25 09:05 probably-neb

Yay, thanks @probably-neb! I feel a little better knowing it needs a Zed change to work. Next up if we get autotags we'll be set!

On Thu, May 15, 2025, at 11:35 AM, Ben Kunkle wrote:

Hey @benwis https://github.com/benwis, this is the PR to add basic support for leptos view! macro support to Zed.

The extension itself is at https://github.com/zed-extensions/leptos, this PR, once merged will publish the extension so that it's available in Zed, which I will do once rust: Add injection for leptos view macro (#30710) · @.*** https://github.com/zed-industries/zed/commit/1fb1fecb0ad42fba030bef90464b9b5b4e2b70e4 has been released in stable as it is required for this extension to work properly.

You can view, comment on, or merge this pull request online at:

https://github.com/zed-industries/extensions/pull/2664

Commit Summary

• db85574 https://github.com/zed-industries/extensions/pull/2664/commits/db8557491d6f79de06f9ce6357b5912dd15119df add leptos File Changes

(3 files https://github.com/zed-industries/extensions/pull/2664/files)

M .gitmodules https://github.com/zed-industries/extensions/pull/2664/files#diff-fe7afb5c9c916e521401d3fcfb4277d5071798c3baf83baf11d6071742823584 (4) • M extensions.toml https://github.com/zed-industries/extensions/pull/2664/files#diff-724e5177a66640ebdc9d051879ac354bbfd595c1b4d039bab887600964bb2023 (4) • A extensions/leptos https://github.com/zed-industries/extensions/pull/2664/files#diff-dec63106da3aff77fdbcde6cfd64d1e8b1ee0cfb8e8cbb5e4d885df7ef200bd9 (1) Patch Links:

• https://github.com/zed-industries/extensions/pull/2664.patch • https://github.com/zed-industries/extensions/pull/2664.diff

— Reply to this email directly, view it on GitHub https://github.com/zed-industries/extensions/pull/2664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVBTCJ3ODDOWA3ZLUI2VH326RNXLAVCNFSM6AAAAAB5FSMAPSVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA3DKNJXGYZTQNY. You are receiving this because you were mentioned.Message ID: @.***>

benwis avatar May 15 '25 10:05 benwis

@probably-neb Do you want to merge this?

notpeter avatar May 30 '25 13:05 notpeter

Yep, v0.183.3 went out with this two days ago! Merging now

probably-neb avatar May 30 '25 18:05 probably-neb