Skip to content

markupCompletion

markupCompletion(namespaces, globalAttributes?, nestedSource?): CompletionSource

Defined in: extensions/autocomplete/markup/index.ts:52

Completion source that adds auto completion for specified tags.

object[]

Array of different namespaces of tags you want to provide completions for. The tags property maps tag names in that namespace to completable attributes for that tag. The optional globals property allows you to override the global attributes shared by all tags in the namespace. If omitted, the globalAttributes parameter is used.

AttributeConfig

Default global attributes. Used by unrecognized tags or when the globals property is omitted.

CompletionSource

Completion source that will be used whenever the completion isn’t happening inside a tag. Can be used to provide completions for snippets for example.

CompletionSource

A Completion source.