From 32d8c7db07de9bb98e1f5dfeb6f24b1f8a9490dc Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:50:27 +0100 Subject: [PATCH] DX: show code block moves in Git diff editor (#215) --- .vscode/settings.json | 1 + src/repoma/check_dev_files/vscode.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9bf184e4..69e8f6d7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,7 @@ "coverage-gutters.showGutterCoverage": false, "coverage-gutters.showLineCoverage": true, "cSpell.enabled": true, + "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, "files.watcherExclude": { "**/*_cache/**": true, diff --git a/src/repoma/check_dev_files/vscode.py b/src/repoma/check_dev_files/vscode.py index 07f9f974..73fbcc6d 100644 --- a/src/repoma/check_dev_files/vscode.py +++ b/src/repoma/check_dev_files/vscode.py @@ -38,6 +38,7 @@ def _update_settings(has_notebooks: bool) -> None: executor( vscode.set_setting, { + "diffEditor.experimental.showMoves": True, "editor.formatOnSave": True, "rewrap.wrappingColumn": 88, # black },