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>