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

Method getSnippet

src/core/Snippets.ts:184–186  ·  view source on GitHub ↗

* Looks in merged collection of snippets for a snippet with key * `snippetName` * @param snippetName The name of the snippet to look up * @returns The named snippet, or undefined if not found

(snippetName: string)

Source from the content-addressed store, hash-verified

182 * @returns The named snippet, or undefined if not found
183 */
184 getSnippet(snippetName: string): Snippet | undefined {
185 return this.mergedSnippets[snippetName];
186 }
187}

Callers 2

getTargetPreferencesMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected