Hi. Which is your macOS?
Where do you save the file on your Mac, that you don't already have the permissions?
Please do a secondary click onto 'Document.adoc' as shown on the sidebar.
And select 'Reveal in Finder'

Does this Finder window get opened?

If so select the file and call Finder > Get Info.

Where is it saved? And which Permissions are there?