Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Comments

More fixes to attribute value autocompletion#63

Merged
winstliu merged 6 commits intomasterfrom
wl-more-value-fixes
Apr 30, 2017
Merged

More fixes to attribute value autocompletion#63
winstliu merged 6 commits intomasterfrom
wl-more-value-fixes

Conversation

@winstliu
Copy link
Contributor

@winstliu winstliu commented Apr 29, 2017

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Hopefully this will be the last batch of fixes. #62 caused value autocompletion to stop working entirely. Specs didn't catch it for some reason (probably because of a different prefix being sent). I'll try to tweak the specs so that they cover more real-life scenarios and do some extra testing to make sure everything's working as expected.

Alternate Designs

Instead of manually adjusting the prefix in the specs, the specs could call the internal method that ac+ uses to get the actual prefix.

Benefits

Value autocompletion will work again.

Possible Drawbacks

Regressions. I'll be testing this more though.

Applicable Issues

None.

Wliu added 2 commits April 29, 2017 00:13
The word boundary method used in the specs reports =", but the
method used in ac+ is much more sophisticated and returns an
empty string in the same scenario. Manually adjust the prefix
so that we test real-life scenarios.
@winstliu
Copy link
Contributor Author

Ugh.

<button type="'|'"

will throw.

@winstliu
Copy link
Contributor Author

Attribute value completion needs a more robust prefix, but that can be done in a separate PR.

@winstliu
Copy link
Contributor Author

Well, now that the last commit b0a0e29 adds the existence operator to the line that was throwing every time we attempted to autocomplete something incorrectly, this should now be good to merge. The other commits just fix and improve some logic so we attempt to autocomplete values only when necessary.

@winstliu winstliu merged commit fc1f6d8 into master Apr 30, 2017
@winstliu winstliu deleted the wl-more-value-fixes branch April 30, 2017 20:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant