From c79acf5ffeff7c2babc48592a0820c26ce6be158 Mon Sep 17 00:00:00 2001 From: Evan <58194240+celestial-vault@users.noreply.github.com> Date: Mon, 12 May 2025 14:37:05 -0500 Subject: [PATCH] Disable breaking out of diff auto scroll (#3473) * disable breaking out of auto scroll * changeset --------- Co-authored-by: Elephant Lumps --- .changeset/forty-spiders-repair.md | 5 +++++ src/integrations/editor/DiffViewProvider.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/forty-spiders-repair.md diff --git a/.changeset/forty-spiders-repair.md b/.changeset/forty-spiders-repair.md new file mode 100644 index 00000000..c7dbb384 --- /dev/null +++ b/.changeset/forty-spiders-repair.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Disable breaking out of diff auto scroll while it's reworked diff --git a/src/integrations/editor/DiffViewProvider.ts b/src/integrations/editor/DiffViewProvider.ts index 4f9f967e..674b6468 100644 --- a/src/integrations/editor/DiffViewProvider.ts +++ b/src/integrations/editor/DiffViewProvider.ts @@ -91,9 +91,9 @@ export class DiffViewProvider { const currentFirstVisibleLine = e.visibleRanges[0]?.start.line || 0 // If the first visible line moved upward, user scrolled up - if (currentFirstVisibleLine < this.lastFirstVisibleLine) { - this.shouldAutoScroll = false - } + // if (currentFirstVisibleLine < this.lastFirstVisibleLine) { + // this.shouldAutoScroll = false + // } // Always update our tracking variable this.lastFirstVisibleLine = currentFirstVisibleLine