SnippetStore
Index
Properties
activeSnippet
activeSnippetName
isExecuting
snippets
publicstaticreadonlyToasterTimeout
Accessors
numSavedSnippets
Returns number
validInput
Returns boolean
staticInstance
Returns SnippetStore
Methods
clearActiveSnippet
Returns void
deleteSnippet
Parameters
name: string
silent: boolean = false
Returns Generator<Promise<any>, boolean, unknown>
executeCurrentSnippet
Returns Generator<any, boolean, unknown>
fetchSnippets
Returns Generator<Promise<Map<string, Snippet>>, void, unknown>
saveSnippet
Parameters
name: string
snippet: Snippet
silent: boolean = false
Returns Generator<Promise<any>, boolean, unknown>
setActiveSnippet
Parameters
snippet: Snippet
name: string
Returns void
setDefaultSnippets
Returns void
setSnippetString
Parameters
val: string
Returns void
publicsnippetExists
Parameters
name: string
Returns boolean