Skip to content

[VS] Find References: fix SelectTarget after the merge of #2154 and #2156 - #2161

Merged
RobertvanderHulst merged 1 commit into
X-Sharp:devfrom
hpetriffer:fix/findreferences-merge
Nov 8, 2026
Merged

RobertvanderHulst merged 1 commit into
X-Sharp:devfrom
hpetriffer:fix/findreferences-merge

Conversation

@hpetriffer

Copy link
Copy Markdown
Contributor

FindReferencesCommand.cs does not compile on dev since #2156 was merged (reported by Robert in #2156).

Cause: the squash merge of #2156 collided with SelectTarget, which #2154 (Rename) added to the same file. The conflict resolution mixed both versions: an await in a non-async method, duplicate target/location variables, an undefined doc and an orphaned catch block.

Fix: SelectTarget keeps the shape from #2154 but resolves the symbol through TargetUnderCursor.Resolve (the shared helper from #2156) and fills TargetSelection from it. Messages are unchanged; Rename, Find References and Go To Implementation use the same lookup again.

Verified: LanguageService2022.csproj (Debug, AnyCPU) builds without errors. Not re-tested manually in VS.

🤖 Generated with Claude Code

…and X-Sharp#2156

The squash merge of X-Sharp#2156 mixed the SelectTarget method from X-Sharp#2154 (Rename)
with the old inline lookup, so FindReferencesCommand.cs did not compile.
SelectTarget now resolves the symbol through TargetUnderCursor.Resolve and
fills TargetSelection from it; messages are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RobertvanderHulst
RobertvanderHulst merged commit d0adc26 into X-Sharp:dev Nov 8, 2026
1 check passed
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.

2 participants