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: completion value with dash #832

Conversation

p-spacek
Copy link
Contributor

What does this PR do?

fix the completion item range when yaml contains a word ending with a dash symbol.

Screen.Recording.2023-01-17.at.11.03.10.mov

I removed the piece of code that caused this problem (all existing tests passed after removing it).
To be honest I am not sure why this code was there. I tried to think about but I wasn't able to find a scenario when is needed to subtract one character if the current position contains -

note that this example didn't use removed piece of code

array:
 -

What issues does this PR fix or reference?

no ref

Is it tested? How?

added test

@coveralls
Copy link

coveralls commented Jan 17, 2023

Coverage Status

Coverage: 83.063% (+0.01%) from 83.05% when pulling 4bcf688 on jigx-com:fix/completion-item-value-with-dash into 832202f on redhat-developer:main.

@p-spacek p-spacek force-pushed the fix/completion-item-value-with-dash branch from 4fd5bd9 to 8aa95d1 Compare January 27, 2023 13:19
@msivasubramaniaan
Copy link
Contributor

@p-spacek Can you please update the base branch?

@p-spacek p-spacek force-pushed the fix/completion-item-value-with-dash branch from 8aa95d1 to 4bcf688 Compare February 3, 2023 08:43
Copy link
Contributor

@msivasubramaniaan msivasubramaniaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msivasubramaniaan msivasubramaniaan merged commit d3e36a3 into redhat-developer:main Feb 3, 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.

None yet

3 participants