Skip to content

Conversation

@ChocoMelvin
Copy link

Improves auto-completion for variables, specifically when accessing array elements using bracket notation. This allows the language service to suggest completions for array indices.

  • Modifies the isPathChar function to include square brackets, allowing the detection of array selectors within variable paths.
  • Implements a resolveValueByBracketPath function to traverse objects using bracket notation.
  • Introduces pushVarKeyCompletions to suggest array selector snippets (e.g., [${1}]) in addition to regular key completions.

@ChocoMelvin ChocoMelvin self-assigned this Jan 15, 2026
@ChocoMelvin ChocoMelvin added the enhancement New feature or request label Jan 15, 2026
Melvin van Bree added 3 commits January 15, 2026 11:51
# Conflicts:
#	test/language-service/language-service.ts
@ChocoMelvin ChocoMelvin force-pushed the feature/array-completion branch from a661595 to 09c7f14 Compare January 15, 2026 11:00
@Sander-Toonen Sander-Toonen marked this pull request as ready for review January 15, 2026 13:21
@Sander-Toonen Sander-Toonen merged commit 93e47f1 into master Jan 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants