Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: array item with existing property #25

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

p-spacek
Copy link
Collaborator

@p-spacek p-spacek commented Nov 7, 2023

What does this PR do?

original PR: redhat-developer#882
there is still open discussion if this PR is correct.
I think it is in terms of current implementation. To fix it properly the findClosestNode has to be fixed - see the skipped tests in this PR...

fix autocompletion when the position is on the same line with the hyphen followed by other props

there are two problems:

  1. intellisense doesn't work correctly for the first item when there is another prop in the array item
Screenshot 2023-05-17 at 09 37 56 Screenshot 2023-05-17 at 09 37 24
Screen.Recording.2023-05-17.at.09.38.41.mov
  1. the compensation of the indentation is not correct for the first item after the hyphen
Screen.Recording.2023-05-17.at.09.39.39.mov

after fix of the 1st problem, the 2nd problem looks like this

Screen.Recording.2023-05-17.at.09.57.23.mov

after fix:

Screen.Recording.2023-05-17.at.09.40.47.mov

UPDATE:
3) this PR also fixes this issue:

Screen.Recording.2023-07-17.at.13.04.06.mov

What issues does this PR fix or reference?

no reference

Is it tested? How?

add unit tests

@p-spacek p-spacek changed the title chore: add another test and fix failing tests fix: array item with existing property Nov 7, 2023
@p-spacek p-spacek merged commit a1be171 into jigx Nov 7, 2023
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.

1 participant