Merge "Refactor directory API to "opening document tree."" into lmp-preview-dev