nl_tokens: Returns all possible snippets completions for given editor context . Completions are cached in editor for for re - use
pl_tokens: function getSnippetCompletions ( editor , pos , config ) { const { type , syntax } = config ; if ( ! editor . <mask> . emmetCompletions ) { editor . state . emmetCompletions = { } ; } const cache = editor . state . emmetCompletions ; if ( ! ( syntax in cache ) ) { const registry = createSnippetsRegistry ( type , syntax , config . snippets ) ; cache [ syntax ] = type === 'stylesheet' ? getStylesheetSnippets ( registry , config ) : getMarkupSnippets ( registry , config ) ; } return cache [ syntax ] ; }