continue-custom/core
Rob Leidle 331cdb768c
Change treeSitter to cache the Language objects it loads from wasm (#1672)
Without this change, for a repository with 600 typescript files, the
indexer would fail to finish correctly and there would be many of the
following errors in the webview console log:

'Unable to load language for file ${path} RuntimeError: table index is out of bounds'

The following bash will create a repo that reproduces the problem:

current_path="."

for ((i=1; i<=20; i++)); do
    new_folder="folder-$i"
    mkdir -p "$current_path/$new_folder"
    current_path="$current_path/$new_folder"

    for ((a=1; a<=30; a++)); do
      head -c 10000 /dev/urandom | base64 > "$current_path/file-$a.ts"
    done
done

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-07-05 09:56:16 -07:00
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
autocomplete import Handlebars 2024-07-02 18:35:48 -07:00
commands dev (#1542) 2024-06-28 16:21:36 -07:00
config Add support for the HuggingFace Text Embeddings Inference server (#1657) 2024-07-03 23:50:04 -07:00
context Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
continueServer publish stubs (#1472) 2024-06-12 22:30:27 -07:00
deploy publish stubs (#1472) 2024-06-12 22:30:27 -07:00
diff 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
indexing quick fix for walk dir 2024-07-04 15:59:07 -07:00
llm each stop sequence must contain non-whitespace, Bedrock Anthropic 2024-07-04 09:13:04 -07:00
protocol Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test quick fix for walk dir 2024-07-04 15:59:07 -07:00
util Change treeSitter to cache the Language objects it loads from wasm (#1672) 2024-07-05 09:56:16 -07:00
vendor ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
.eslintrc.json fix(core): remove eslint config and fix errors (#1457) 2024-06-09 19:14:41 -07:00
.gitignore 💫 Preview (#996) 2024-03-19 10:35:28 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
biome.json 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
core.ts Nate/indexing fixes (#1642) 2024-07-02 18:40:21 -07:00
index.d.ts Add support for the HuggingFace Text Embeddings Inference server (#1657) 2024-07-03 23:50:04 -07:00
jest.config.js Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
package-lock.json fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
package.json Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
tsconfig.json Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00