svelteCompletion
svelteCompletion(
blockSnippets?
,components?
,nestedSource?
):CompletionSource
Defined in: extensions/autocomplete/svelte/index.ts:132
Completion source that adds completion for HTML and SVG tags to Svelte. When configured, it can also provide completions for specific Svelte components.
Parameters
Section titled “Parameters”blockSnippets?
Section titled “blockSnippets?”Snippets used to complete Svelte blocks such as {#each}
.
components?
Section titled “components?”Used to configure autocompletion for Svelte components. This is an object mapping each component’s name to the properties available for that component.
nestedSource?
Section titled “nestedSource?”Completion source that will be used whenever the completion isn’t happening inside a tag or Svelte block. Can be used to provide completions for snippets for example.