Skip to content

Prevent attribute from being suggested in the wrong offset#346

Merged
rcjsuen merged 2 commits intomainfrom
wildcard-object-attribute-suggestion-fix
Jul 9, 2025
Merged

Prevent attribute from being suggested in the wrong offset#346
rcjsuen merged 2 commits intomainfrom
wildcard-object-attribute-suggestion-fix

Conversation

@rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Jul 9, 2025

As indentation is critical for a YAML file, we should consider it when determining what attributes should be returned instead of blindly returning all attributes regardless of where the text cursor is at.

Fixes #342.

As indentation is critical for a YAML file, we should consider it when
determining what attributes should be returned instead of blindly
returning all attributes regardless of where the text cursor is at.

Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen rcjsuen self-assigned this Jul 9, 2025
Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen rcjsuen merged commit 84e1f4c into main Jul 9, 2025
18 checks passed
@rcjsuen rcjsuen deleted the wildcard-object-attribute-suggestion-fix branch July 9, 2025 19:03
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.

WIldcard object attributes should consider the character offset when returning completion items

1 participant