Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented May 29, 2025

This PR resolves a bug where, within the argument-parameter element of a function invoked on a static-access field, instance fields and methods following the top-level element were not being suggested. When suggesting completions for a child of an argument-parameter element, the static-field-access element check is now skipped.

@xterao xterao self-assigned this May 29, 2025
@xterao xterao added bug Something isn't working fix Bug fixes labels May 29, 2025
@xterao xterao requested a review from Copilot May 29, 2025 06:08
@xterao xterao added this to the 0.8.1 Release milestone May 29, 2025
Copy link
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 resolves a bug in SQL completion suggestions where instance members were missing in static property call arguments. It adds several SQL test cases and corresponding DAO methods and adjusts the completion logic in SqlParameterCompletionProvider to bypass the static-field-access check when processing function-parameter elements.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

File Description
completeParameter*.sql New SQL test files to validate completions in both static access and custom function contexts.
SqlCompleteTestDao.java Added new DAO method declarations that exercise the updated SQL completion behavior.
SqlCompleteTest.kt Added test functions to verify correct suggestions for instance members in various static access and custom function scenarios.
SqlParameterCompletionProvider.kt Updated completion logic to skip the static-field-access element check for function-parameter elements.

@xterao xterao merged commit c7b3842 into main May 29, 2025
5 checks passed
@xterao xterao deleted the fix/suggestions-missing-inside-static-property-call branch May 29, 2025 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instance member suggestions missing inside static property call arguments

2 participants