mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-07 02:11:25 +02:00
#424 - Implementation of the snippet wrapper
This commit is contained in:
@@ -13,6 +13,8 @@ export interface ViewData {
|
||||
position?: Position;
|
||||
fileTitle?: string;
|
||||
selection?: string;
|
||||
range?: SnippetRange;
|
||||
snippetInfo?: SnippetInfo;
|
||||
pageBundle?: boolean;
|
||||
metadataInsert?: boolean;
|
||||
blockData?: BlockFieldData;
|
||||
@@ -24,3 +26,18 @@ export interface ViewData {
|
||||
type: 'file' | 'media';
|
||||
fileExtensions?: string[];
|
||||
}
|
||||
|
||||
export interface SnippetRange {
|
||||
start: Position;
|
||||
end: Position;
|
||||
}
|
||||
|
||||
export interface SnippetInfo {
|
||||
id: string;
|
||||
fields: SnippetInfoField[];
|
||||
}
|
||||
|
||||
export interface SnippetInfoField {
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user