Amp 变更面板推出智能文件排序
Amp 的 Changes 面板新增自动智能排序:它会读取 diff,找出对本次改动最关键的几个文件并把它们排在前面。当 diff 发生变化时,Amp 会重新计算顺序,但不会在用户评审过程中直接重排文件,而是在智能排序按钮上显示一个蓝点,点击后才应用更新后的顺序。官方称新方法的智能排序计算速度快得多,用户仍可点击排序按钮切换回按字母顺序排列。
评审大型 diff 时,把关键文件自动置顶可以减少翻找时间,让代码审查更快进入重点。
The Changes pane now automatically puts files in an intelligent order. Amp reads the diff, identifies the files that are essential to the change, and puts them first.
If the diff changes, Amp computes an updated order without rearranging the files while you’re reviewing them. Instead, a blue dot will appear over the intelligent ordering button, which you can click to apply the updated order.
The new automatic intelligent ordering is computed much more rapidly. Here is a comparison of the same diff ordered by both the old and new method:
You can optionally go back to alphabetical file ordering by clicking the ordering button.