MCPcopy
hub / github.com/continuedev/continue / getUriFileExtension

Function getUriFileExtension

core/util/uri.ts:104–107  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

102 Returns the file extension of a URI
103*/
104export function getUriFileExtension(uri: string) {
105 const baseName = getUriPathBasename(uri);
106 return getFileExtensionFromBasename(baseName);
107}
108
109export function getLastNUriRelativePathParts(
110 dirUriCandidates: string[],

Callers 7

languageForFilepathFunction · 0.90
uri.test.tsFile · 0.90
getLanguageForFileFunction · 0.90
getFullLanguageNameFunction · 0.90
canUseInstantApplyFunction · 0.90
chunkDocumentWithoutIdFunction · 0.85

Calls 2

getUriPathBasenameFunction · 0.85

Tested by

no test coverage detected