Repository: vscode
Issue: Improve Move Detection
Labels: feature-request,diff-editor

[Repro](https://microsoft.github.io/monaco-editor/playground.html?source=v0.42.0-dev-20230809#XQAAAAJUOQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscy9KWswOJwjZdvhr_xOxquPiE88t6gl953kjF9Z1nuQaJPYZiTsO_Qe-TAi4WQnc8Mrt12Frm3K5DWFgn_bqPadxu0Xw3FteHVD8vePtXSQbF4PqDu5p6sEU_02N1SQKATP697HqtvVxyAsBwUUvsPp7RgFj9tVxb2i_bylV4eQTNeW_2AGk_e6v8Gz6fppk7ulQW0J7z46pRrqImdJ8FcgSAqTPQorXkJ9y8V-4J2fWZvGf2bplHb-AUe-uZRypEmFW2BDZKHZ3drsiio51MMKumGHTF8gPnYkPyOJiWrEjdI4oEyFMjyWGZGENDOBcieDEmr_5WKqqMwah8FHjX4mvF6fhlbqd6PgtGS9Pth1KnWum6bKzM4jKyJLET5Got9I5PvJnIWqf-ZK1RxnDLu71Z4JEnpx8cqyCvm94I-UebCM68x1BN48Zp8rA8kUG0MtLrTSDuYe0SI7YJ2P1IlenuLDvJ-7_mgKBHT9PLJ7BaMDy-t1fa807s11odBUB6wLfJywjSVI8TmvBsKYJnpSYuc7o2keTH0SUmn9PeDf74Qhj1PO1N5ZcflpqXWweg27JloLXFti1erofBPVFj__73Ii3Z4zYAWh8r-aP5_2rqdZ7FO15-9EnNohntBmMvv5Sf0xejfolLWdTZmcrIeslR7MRh0VVh59Y7TngyXtEOK7EE1biimyIQc3HU4f-XITCT5si0TAL6K4Gc1z2o2T1FaQwpTWPzO1tOILFeoY2MxlUnKauSmkyiiUBfIRzy_oRIvPCzCXVDDibslAufRM1JKPpBSWfUsi8r_dOka6uSSvHE4Lv8Ogpos93L4LalnyQQVkeVjXpZWTwUpbUfuxY-I3XpoPoWLN4SfgaaRRqsYP3W5xK_tiX2FtCbF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HQFBtwXqnmh7nZnJ37Vyxn1K0smxkwpsA-cp36oLF_6DlR6z469Xbchin68iRiPcfsR8ijOpGXrXc55n81peCLpMr4AgLP2_pr2cT-S3X3e19gX1-0aodYEmXeOMVfnQSzVRw6ZQQ1B_XRKtqboHlG1iCCvvFCWG5VJ-hxKCLtlIk8dXqGIKKegtnn5-yn7TsvonILaMxy0aS_-AqZEvWN3Lgw67iAjvn1zESxLGf4oeygxIi7PN9e6Du-Az4sP6kjYkXCalcExQQ2Yg7hgVrdc6reHOndK7dyUXuz8umeuaeRNZQgHF5N03ZEYqxGivTn1iO0_q5VgNilJ19xOlBCpq2ZdrFc4WHdh_EwmrKigKo__X9OrQ)

![chrome_eMQ5MdBkhm](https://github.com/microsoft/vscode/assets/2931520/9370ba35-5c06-4006-b1a3-d1f5f36892d3)

[It would be nice to detect this move.](https://microsoft.github.io/monaco-editor/playground.html?source=v0.42.0-dev-20230809#XQAAAALgBQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw9tB_2EChkmZ_i818hfkoqOpFQHEvIxUC2MltD4RrsefaY-dWUozyzjhjaNhLTMC_Igv4t660m7K-kjCQbkK5HmIZ5aNoQMKe4c896WrYXpeZhkGZv7YlK7ZLpOBcwXDPoro2wpKr9pB8-mXXBq6RQ7XD3_roP86WFSLgEKXejJ8AtqM6WjMAR6sjXJ798aLQjPyLHBu0cCjCFlbdC12mqdwRlfwCg-g-yOTEWIqRPRSA71-oKd8cugwBQvzbv04cCdtVxbEu74FBbK7T4DfWZVhy2GzBdJUUBZruRrjqSV5yXQ0g7mD8PUAJwALG0eo093gm21g6ryzafqR0_id4X3r-4A70h1V0vTLYTVvcfbHOyVaeZLdfKzc_HklzJ9rAom-3aOBxa5J8NI_YraeiA7_SzB3NLeVz_JS5DSy7W0bqmtxkvv5qZPp1CVrV9d28580emeVA4B36SOAlR6JBcMurutmuRaYdMq3xoLMUuBWEemnEocSkqMhPSdW3ysxHONdzG7M2CJVBaga7Hhc_QRN0w4pkYduhYWg-2j0jHyZ33N7VJv2NrzTPOqd4h7T5pG6NOwBf_UVDJ_x439Xj_xHdueHfggl8ool9v_-XA0ph)

![chrome_ghy8pUtoNH](https://github.com/microsoft/vscode/assets/2931520/15123e85-d6d0-4f1d-9ab3-03203b811fa9)