Skip to content

Fix references for local variables and parameters#2679

Open
somiljain2006 wants to merge 2 commits into
swiftlang:mainfrom
somiljain2006:Local-variable-refrence
Open

Fix references for local variables and parameters#2679
somiljain2006 wants to merge 2 commits into
swiftlang:mainfrom
somiljain2006:Local-variable-refrence

Conversation

@somiljain2006
Copy link
Copy Markdown

Fixes #2583

Use relatedIdentifiers as a fallback when indexed references are unavailable, allowing textDocument/references to resolve local variables and parameters. Add regression tests covering local variable references, shadowed locals, parameter references, and includeDeclaration behavior.

@somiljain2006
Copy link
Copy Markdown
Author

@ahoppen @hamishknight @rintaro Can you review this pr?

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.

Resolve references of local bindings

1 participant