Infinite recursion in symbols

I am developing my extension for the Haskell programming language: GitHub - ilyakooo0/haskell-nova

I am not sure what exactly causes this but when editing files with my extension, the symbols for functions recurse into themselves infinitely. It seems like editing the file adds an extra level of nesting every time.

Reopening the file resets things back to normal.

This might be related to Very bad performance when using a Language Server - #4 by iko