MCPcopy Create free account
hub / github.com/continuedev/continue / getFileName

Function getFileName

core/autocomplete/templating/AutocompleteTemplate.ts:85–89  ·  view source on GitHub ↗
(snippet: { uri: string; uniquePath: string })

Source from the content-addressed store, hash-verified

83 workspaceUris: string[],
84 ): [string, string] => {
85 function getFileName(snippet: { uri: string; uniquePath: string }): string {
86 return snippet.uri.startsWith("file://")
87 ? snippet.uniquePath
88 : snippet.uri;
89 }
90
91 if (snippets.length === 0) {
92 return [prefix, suffix];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected