Comment lines trip up the folding mechanism

For this source code

module MyModule
function func(x)
# comment line
# another comment line
  for i in 1:10
    for j in 2:9
      println(i+j)
    end
  end
end
end

the function cannot be folded. You need to insert spaces in front of the comments to be able to fold the function. I guess that means that the range detection uses indentation, not the language server.

Is this a standard behavior?

I use the official Julia extension by julialang. I keep updating VS Code and its extensions.

Yes, code folding is currently completely indentation based.