continue-custom/core/util
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
..
ca.ts setupCa in vscode extension 2024-06-13 17:29:15 -07:00
devdata.ts ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
devdataSqlite.ts fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
fetchWithOptions.ts feat: Client Certificate Options Support (#1658) 2024-07-03 23:44:06 -07:00
filesystem.ts Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
GlobalContext.ts ✨ switch between autocomplete models 2024-06-11 13:31:01 -07:00
history.ts ✨ many jetbrains improvements 2024-06-13 14:53:26 -07:00
index.ts Merge branch 'main' into preview 2024-06-23 12:44:14 -07:00
lcs.ts ⚡️ filter out extreme repetitions from autocomplete 2024-06-11 15:28:59 -07:00
LruCache.ts dev (#1542) 2024-06-28 16:21:36 -07:00
merge.ts 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
messageIde.ts Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
messenger.ts dev (#1542) 2024-06-28 16:21:36 -07:00
parameters.ts dev (#1542) 2024-06-28 16:21:36 -07:00
paths.ts fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
posthog.ts 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
ranges.ts ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
reverseMessageIde.ts Tests for indexing + follow all .gitignore syntax (#1661) 2024-07-03 23:41:43 -07:00
treeSitter.ts Change treeSitter to cache the Language objects it loads from wasm (#1672) 2024-07-05 09:56:16 -07:00
verticalEdit.ts no multiline if midline 2024-06-10 14:14:37 -07:00
withExponentialBackoff.ts 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00