Skip to content

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.

Completion[]

Snippets used to complete Svelte blocks such as {#each}.

TagConfig

Used to configure autocompletion for Svelte components. This is an object mapping each component’s name to the properties available for that component.

CompletionSource

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.

CompletionSource