<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions --> <!-- 🔎 Search existing issues to avoid creating duplicates. --> <!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ --> <!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --> <!-- 🔧 Launch with `code --disable-extensions` to check. --> Does this issue occur when all extensions are disabled?: Yes/No <!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --> <!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. --> - VS Code Version: - 版本: 1.87.2 (Universal) - 提交: 863d2581ecda6849923a2118d93a088b0745d9d6 - 日期: 2024-03-08T15:21:31.043Z - Electron: 27.3.2 - ElectronBuildId: 26836302 - Chromium: 118.0.5993.159 - Node.js: 18.17.1 - V8: 11.8.172.18-electron.0 - OS: Darwin x64 23.3.0 Steps to Reproduce: 1. Open any file that requires the merged code 2. To set the file to read-only, maybe only need to set the file path to read-only in the setting 3. Open the file and try to click codelens, it will have no effect. 4. Recommend that all operations which tries to modify the contents of a read-only file document, need a pop-up prompt.