editor: Add access method for `project` (#36266)

This resolves a `TODO` that I've stumbled upon too many times whilst
looking at the editor code.

Release Notes:

- N/A
3c5d5a1d57Finn Evers committed on 8/15/2025, 6:34:22 PM· committed by GitHubparentbd1fda6
11 files changedLine totals unavailable