Open pauldemarco opened 1 month ago
Here is a Component Header that takes a snippet title as a prop:
Header
title
// Header.svelte let {title}: {title: Snippet} = $props();
It is used like:
<Header> {#snippet title()} ... {/snippet} </Header>
It would be nice if the {#snippet _} could autocomplete for all snippets that the Component takes:
<Header> {#snippet <Autocomplete shows all my snippet options>} ... {/snippet} </Header>
No response
There is autocomplete already but with a big caveat, it doesn't work when the name is empty because of https://github.com/sveltejs/language-tools/issues/1302#issuecomment-1002358234.
Description
Here is a Component
Header
that takes a snippettitle
as a prop:It is used like:
Proposed solution
It would be nice if the {#snippet _} could autocomplete for all snippets that the Component takes:
Alternatives
No response
Additional Information, eg. Screenshots
No response