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
Just FYI, I found a repro case for this too, and the above fix does work.
If in the output window and there's no content after a prompt, such as right after it's opened and initialized, if you hit tab, the above line of code is run and formatRange is undefined.
I've been seeing this error in the debug console while working on Calva in the last week or two. I suspect it has been happening for some time.
Think we just need to check
if (!formatRange || !formatRange.includes(index))
here:calva/src/calva-fmt/src/format.ts
Line 52 in 5817cb4
to avoid to call on undefined. I would fix and can later but no time right now. Just recording while I see it.
The text was updated successfully, but these errors were encountered: