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

Function parseSnippetLocation

src/actions/WrapWithSnippet.ts:159–165  ·  view source on GitHub ↗
(snippetLocation: string)

Source from the content-addressed store, hash-verified

157}
158
159function parseSnippetLocation(snippetLocation: string): [string, string] {
160 const [snippetName, placeholderName] = snippetLocation.split(".");
161 if (snippetName == null || placeholderName == null) {
162 throw new Error("Snippet location missing '.'");
163 }
164 return [snippetName, placeholderName];
165}
166
167function findMatchingSnippetDefinition(
168 typedSelection: TypedSelection,

Callers 2

getTargetPreferencesMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected