diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
| commit | 54048d3e7bda9c39cc08888b37e0c7dc0716a713 (patch) | |
| tree | 3ff7254f755e4b3b28a523d652b78dd1f61f868d /extension/src/languages/index.ts | |
| parent | 82ead52472d4e2a2e291aa5f17ea8522fc11f236 (diff) | |
| parent | ad462728afc4e6a9e1402aff295010ced9cf2f7a (diff) | |
| download | sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.tar.gz sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.tar.bz2 sncontinue-54048d3e7bda9c39cc08888b37e0c7dc0716a713.zip | |
Merge branch 'main' into function-calling
Diffstat (limited to 'extension/src/languages/index.ts')
| -rw-r--r-- | extension/src/languages/index.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/extension/src/languages/index.ts b/extension/src/languages/index.ts deleted file mode 100644 index 31d73a0b..00000000 --- a/extension/src/languages/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import pythonLanguageLibrary from "./python"; -import javascriptLanguageLibrary from "./javascript"; -import { LanguageLibrary } from "./index.d"; - -export const languageLibraries: LanguageLibrary[] = [ - pythonLanguageLibrary, - javascriptLanguageLibrary, -]; - -export function getLanguageLibrary(filepath: string): LanguageLibrary { - for (let languageLibrary of languageLibraries) { - for (let fileExtension of languageLibrary.fileExtensions) { - if (filepath.endsWith(fileExtension)) { - return languageLibrary; - } - } - } - throw new Error(`No language library found for file ${filepath}`); -} |
