Skip to content

MarkupEmmetOptions

MarkupEmmetOptions = object

Defined in: extensions/autocomplete/emmet/markup.ts:56

optional config: UserConfig

Defined in: extensions/autocomplete/emmet/markup.ts:64

Configuration options passed when resolving the Emmet config.


optional detail: string

Defined in: extensions/autocomplete/emmet/markup.ts:106

Detail displayed in the completion options.

"Emmet"

optional extractOptions: Partial<ExtractOptions>

Defined in: extensions/autocomplete/emmet/markup.ts:73

Options passed when extracting the abbreviation at the cursor’s position


optional highlight: boolean

Defined in: extensions/autocomplete/emmet/markup.ts:111

Whether the expanded abbreviation should be have syntax highlighting in the tooltip documentation.

true

optional icon: Completion["icon"]

Defined in: extensions/autocomplete/emmet/markup.ts:101

Icon displayed in the completion options.

"property"

optional suggestSnippets: 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.

true

optional suggestTags: 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.

true

optional tagPattern: 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.


optional tags: 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.

optional boost(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.

string

string

string

number


optional suggestBoost(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.

string

string

string

number