Skip to content

[WIP] Fix navigation bar to display all entries correctly#1935

Merged
RobertvanderHulst merged 2 commits into
mainfrom
claude/fix-navigation-bar-entries
May 15, 2026
Merged

[WIP] Fix navigation bar to display all entries correctly#1935
RobertvanderHulst merged 2 commits into
mainfrom
claude/fix-navigation-bar-entries

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented May 15, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>[X# 3] Navigationbar does not display all entries</issue_title>
<issue_description>We have a class that is divided into many subclasses. The navigation bar does not seem to display all of the class's entities. Furthermore, it no longer seems to follow the cursor once we reach line 339 of the file (sqlVerkaufContainer).prg.

Image

Here it is displayed everywhere sqlVerkaufContainer
Image

This file also contains a constructor, but the navigation bar does not have one.

I will send an example directly to @RobertvanderHulst
</issue_description>

Comments on the Issue (you are @claude[agent] in this section)

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>
@Claude Claude AI requested a review from RobertvanderHulst May 15, 2026 13:02
@RobertvanderHulst RobertvanderHulst marked this pull request as ready for review May 15, 2026 15:14
Copilot AI review requested due to automatic review settings May 15, 2026 15:14
@RobertvanderHulst RobertvanderHulst merged commit 2a5fb25 into main May 15, 2026
1 check passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses navigation bar cursor tracking by preventing XFile lookup helpers from walking from the last entity back up to a parent entity when the cursor is past the last entity’s range.

Changes:

  • Updated FindMemberAtRow to return the last entity directly for lines past the final entity.
  • Updated FindMemberAtPosition similarly for positions past the final entity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RobertvanderHulst RobertvanderHulst deleted the claude/fix-navigation-bar-entries branch May 15, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[X# 3] Navigationbar does not display all entries

3 participants