MarkupEmmetOptions
MarkupEmmetOptions =
object
Defined in: extensions/autocomplete/emmet/markup.ts:56
Properties
Section titled “Properties”config?
Section titled “config?”
optionalconfig:UserConfig
Defined in: extensions/autocomplete/emmet/markup.ts:64
Configuration options passed when resolving the Emmet config.
detail?
Section titled “detail?”
optionaldetail:string
Defined in: extensions/autocomplete/emmet/markup.ts:106
Detail displayed in the completion options.
Default
Section titled “Default”"Emmet"extractOptions?
Section titled “extractOptions?”
optionalextractOptions:Partial<ExtractOptions>
Defined in: extensions/autocomplete/emmet/markup.ts:73
Options passed when extracting the abbreviation at the cursor’s position
highlight?
Section titled “highlight?”
optionalhighlight:boolean
Defined in: extensions/autocomplete/emmet/markup.ts:111
Whether the expanded abbreviation should be have syntax highlighting in the tooltip documentation.
Default
Section titled “Default”true
optionalicon:Completion["icon"]
Defined in: extensions/autocomplete/emmet/markup.ts:101
Icon displayed in the completion options.
Default
Section titled “Default”"property"suggestSnippets?
Section titled “suggestSnippets?”
optionalsuggestSnippets:boolean
Defined in: extensions/autocomplete/emmet/markup.ts:90
Whether extra suggestions should be shown that extend the last tag in the main abbreviation with Emmet snippets.
Default
Section titled “Default”truesuggestTags?
Section titled “suggestTags?”
optionalsuggestTags:boolean
Defined in: extensions/autocomplete/emmet/markup.ts:96
Whether extra suggestions should be shown that extend the last tag in the main abbreviation with available tags.
Default
Section titled “Default”truetagPattern?
Section titled “tagPattern?”
optionaltagPattern:RegExp
Defined in: extensions/autocomplete/emmet/markup.ts:71
Pattern used for determining whether completion is happening inside a
tag. Pass svelteTag for ‘astro’ or ‘svelte’. This is not needed for JSX
since tagMatch from the completion context will be used instead. Defaults to a tag
pattern for markup.
optionaltags:TagConfig[] |null
Defined in: extensions/autocomplete/emmet/markup.ts:62
List of objects whose keys will be allowed as single word completions even
if they aren’t Emmet snippets. This ensures random words aren’t given as suggestions.
Pass null or undefined to enable suggestions for all words.
Methods
Section titled “Methods”boost()?
Section titled “boost()?”
optionalboost(abbreviation,expanded,lang):number
Defined in: extensions/autocomplete/emmet/markup.ts:79
Boost given to the score of the main abbreviation’s completion option. A positive number moves it up the list, while a negative one moves it down. Defaults to 1.
Parameters
Section titled “Parameters”abbreviation
Section titled “abbreviation”string
expanded
Section titled “expanded”string
string
Returns
Section titled “Returns”number
suggestBoost()?
Section titled “suggestBoost()?”
optionalsuggestBoost(abbreviation,expanded,lang):number
Defined in: extensions/autocomplete/emmet/markup.ts:84
Boost given to the score of the suggestion completion options. A positive number moves them up the list, while a negative one moves them down.
Parameters
Section titled “Parameters”abbreviation
Section titled “abbreviation”string
expanded
Section titled “expanded”string
string
Returns
Section titled “Returns”number