[BACKPORT] [foldcode addon] Support foldOptions option for per-editor defaults.