Skip to main content

Interface: Snippet

typings/snippet.Snippet

Properties

definitions

definitions: SnippetDefinition[]

List of possible definitions for this snippet

Defined in

typings/snippet.ts:60


description

Optional description: string

Description of the snippet

Defined in

typings/snippet.ts:70


insertionScopeTypes

Optional insertionScopeTypes: SimpleScopeTypeType[]

Try to expand target to this scope type when inserting this snippet before/after a target without scope type specified. If multiple scope types are specified try them each in order until one of them matches.

Defined in

typings/snippet.ts:77


variables

Optional variables: Record<string, SnippetVariable>

For each named variable in the snippet, provides extra information about the variable.

Defined in

typings/snippet.ts:65