Basically, FoldWhile is a new System-context symbol in Mathematica version 12.2 and higher:
So there is a name clash with the function defined in Server.wl. As far as I can tell, the LSP function and the System-context context function do the same thing, but the LSP function should be renamed to fix the issue.
[INFO 2021-01-14T11:09:14] Initializing Wolfram Language Server
SetDelayed::write:
Tag FoldWhile in FoldWhile[f_, x_, list_List, test_] is Protected.
SetDelayed::write:
Tag FoldWhile in FoldWhile[f_, list_List, test_] is Protected.
Basically, FoldWhile is a new System-context symbol in Mathematica version 12.2 and higher:
So there is a name clash with the function defined in Server.wl. As far as I can tell, the LSP function and the System-context context function do the same thing, but the LSP function should be renamed to fix the issue.