MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / registerThirdPartySnippets

Method registerThirdPartySnippets

src/core/Snippets.ts:138–141  ·  view source on GitHub ↗

* Allows extensions to register third-party snippets. Calling this function * twice with the same extensionId will replace the older snippets. * * Note that third-party snippets take precedence over core snippets, but * user snippets take precedence over both. * @param extensionId Th

(extensionId: string, snippets: SnippetMap)

Source from the content-addressed store, hash-verified

136 * @param snippets The snippets to be registered.
137 */
138 registerThirdPartySnippets(extensionId: string, snippets: SnippetMap) {
139 this.thirdPartySnippets[extensionId] = snippets;
140 this.mergeSnippets();
141 }
142
143 /**
144 * Merge core, third-party, and user snippets, with precedence user > third

Callers

nothing calls this directly

Calls 1

mergeSnippetsMethod · 0.95

Tested by

no test coverage detected