Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IsActiveDocument in RoslynCodeSearchResult #77311

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sandyarmstrong
Copy link
Member

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 21, 2025
@@ -22,6 +22,7 @@ internal interface INavigateToSearchResult
string? Summary { get; }

INavigableItem NavigableItem { get; }
bool IsActiveDocument { get; }
Copy link
Member

Choose a reason for hiding this comment

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

what will this be used for?

Copy link
Member

Choose a reason for hiding this comment

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

do we need this if the searchresult already exposes NavigableItem? could we not just use that to see if the result's doc-id is the same as the original id?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how I'd figure that out from within RoslynNavigateToSearchCallback

Copy link
Member

Choose a reason for hiding this comment

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

i would think the active document would be available/captured into the callback. and its doc id could be compared against the doc id in NavigableItem.

@sandyarmstrong
Copy link
Member Author

This won't build until a corresponding change lands on the VS side. I just wanted to put drafts up on each side to get feedback on the approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants