Ensure bundled files are opened as read-only (#36299)

Closes #36297

While we set the editor as read-only for bundled files, we didn't do
this for the underlying buffer. This PR fixes this and adds a test for
the corresponding case.

Release Notes:

- Fixed an issue where bundled files (e.g. the default settings) could
be edited in some circumstances
6f2e7c355eFinn Evers committed on 8/16/2025, 11:36:17 AM· committed by GitHubparent864d4bc
1 file changedLine totals unavailable