lua-language-server
                                
                                 lua-language-server copied to clipboard
                                
                                    lua-language-server copied to clipboard
                            
                            
                            
                        Collapsing of functions in the editor breaks if there is a comment before and after the function declaration
VSCode with sumneko.lua 3.7.4
Reproducer:
-- foo
function foo() -- foo
	if a then
		return a
	end
end
This code shows two collapsing/folding indicators to the left, one for the if (expected) and one for the comment (unexpected), but none for the function itself:
Clicking the first folding icon results in this:
It looks like it thinks the two comments belong to one comment block for the function instead of being unrelated comments.