Welcome to Microsoft Q&A forum.
I tested in VS 2017, VS 2019 and VS 2022. Like David said, the "Allow editing of read-only files; warn when attempting to save" option controls whether this "Edit Of Read-Only File" dialog pops up at the beginning of editing the read-only file, or pops up after you have changed the read-only file and prepare to save the changes. But in both situations this dialog will pop up, it’s just the order.
According to your description, it seems that on past, VS 2019 didn’t pop up this dialog? I cannot confirm this, but if it is true, I would recommend raising a suggestion ticket on our Developer Community.
BTW, for read-only file, there's a lock icon on the tab. If Tools > Options > Source Control > Plug-in Selection > Current source control plug-in is set to like Git
(not None), then another dialog will pop up when editing read-only files.
Best Regards,
Tianyu
- If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.