{"version":"2.1.327","anchor":"edit-permission-prompt-replace-all-edits-disable-session-wi","canonical_anchor":"edit-permission-prompt-replace-all-edits-disable-session-wi","heading":"Edits that replace every match can only be approved one at a time","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/edit-permission-prompt-replace-all-edits-disable-session-wi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Edits that replace every match can only be approved one at a time\n\nEdit now marks replace-all edits, and its permission prompt no longer lets you approve them for the rest of the session\n\n**What**\n\nThe Edit tool can replace every place a piece of text appears in a file when `replace_all` is set. Those edits are now treated differently:\n\n- The Edit result now carries a `replacesEveryMatch` field. It is true when `replace_all` is set and `old_string`, the text being replaced, is not empty.\n\n- When such an edit asks for permission, the option to approve edits for the rest of the session is turned off. A notice explains it, starting `One-time Yes only: places not shown`.\n\n**Why**\n\nA replace-all edit can change places in the file that the prompt does not show you. You now have to approve each one, instead of allowing them for the rest of the session.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}