DirectionalLight shadows in the Editor are cut off

Hi, I am trying to add shadows from DirectionalLight to objects in the Editor. But they are visible only in a square area. What am I doing wrong? Can this be fixed in code?

image

Not sure about this but the issue might be related to a too small frustum of DirectionalLight's internal shadow camera. In code, it’s possible to adjust these values. Read the following for more information:

Thank you for quick response. Indeed, this helps.