From 71a718e7b5665c41923946bdb6469df7c9a3fbb0 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Fri, 15 May 2026 12:56:57 +0000 Subject: [PATCH 1/2] Initial plan From fd7c96164f3af7f18abda9edd815fc776e7968eb Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Fri, 15 May 2026 13:00:34 +0000 Subject: [PATCH 2/2] Fix navigation bar cursor tracking after last entity Remove parent-walking logic in FindMemberAtRow that was causing the navigation bar to stop following the cursor after the last entity's declared range. Now returns the last entity directly instead of walking up to its outermost parent, allowing proper cursor tracking throughout the file. Agent-Logs-Url: https://github.com/X-Sharp/XSharpPublic/sessions/6e1ccee3-17db-4c9b-9236-7a3ed85c8f68 Co-authored-by: RobertvanderHulst <14240939+RobertvanderHulst@users.noreply.github.com> --- src/VisualStudio/XSharpCodeModelXs/ProjectSystem/XFile.prg | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/VisualStudio/XSharpCodeModelXs/ProjectSystem/XFile.prg b/src/VisualStudio/XSharpCodeModelXs/ProjectSystem/XFile.prg index bc7b35e6bc..e9628dbd42 100644 --- a/src/VisualStudio/XSharpCodeModelXs/ProjectSystem/XFile.prg +++ b/src/VisualStudio/XSharpCodeModelXs/ProjectSystem/XFile.prg @@ -94,10 +94,6 @@ NAMESPACE XSharpModel temp := _entityList:Last() if nLine > temp:Range:EndLine result := temp - do while result:Parent is XSourceEntity var source .and. source:Range:EndLine >result:Range:EndLine - result := source - enddo - endif endif endif @@ -130,9 +126,6 @@ NAMESPACE XSharpModel temp := _entityList:Last() if nPos > temp:Interval:Stop result := temp - do while result:Parent is XSourceEntity var source .and. source:Interval:Stop >result:Interval:Stop - result := source - enddo endif endif endif