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

Attempt to fix #2125 #2213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Attempt to fix #2125 #2213

wants to merge 1 commit into from

Conversation

seijikun
Copy link

I think the issue is that the block property completer adds two suggestions:

  • One ending with ,, to start a new property name=value pair.
  • One ending with ] and a trailing space, to signal that thats the end of the command

onlyOnLastQuotedWord() picks up on the trailing space, and attempts to limit the suggestion to the part behind the trailing space it. There is no part behind it, though - it's trailing after all. My fix was to simply ignore the trailing spaces.
That should be looked over by someone who knows the internals and possible sideeffects from this change better than I do, though!

Comment on lines +232 to +233
// Ignore if suggestion ends with a " ", since that signals the end of
// the completed command.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Ignore if suggestion ends with a " ", since that signals the end of
// the completed command.
// Check if there is a space inside the substring, and suggest starting from there instead.

@octylFractal
Copy link
Member

Can you also rebase this onto version/7.2.x instead? As a bug fix, it can go there.

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