markupCompletion
markupCompletion(
namespaces,globalAttributes?,nestedSource?):CompletionSource
Defined in: extensions/autocomplete/markup/index.ts:52
Completion source that adds auto completion for specified tags.
Parameters
Section titled “Parameters”namespaces
Section titled “namespaces”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.
globalAttributes?
Section titled “globalAttributes?”Default global attributes. Used by unrecognized tags or when
the globals property is omitted.
nestedSource?
Section titled “nestedSource?”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.
Returns
Section titled “Returns”A Completion source.