You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change treeSitter to cache the Language objects it loads from wasm
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
0 commit comments