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

Properly insert snippet for textEdit. #37

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

Conversation

tigersoldier
Copy link
Owner

Remember the start and end positions when inserting a completion candidate with
textEdit populated. Use those positions to expand yassnippets. insertText is
handled in a similar fasion.

To avoid destory previous snippet field, try to restore the pre-completion state
by removing text inserted by company first. If company does more than insertion,
restore the whole line as how it's done originally.

Fixes #33

Remember the start and end positions when inserting a completion candidate with
textEdit populated. Use those positions to expand yassnippets. insertText is
handled in a similar fasion.

To avoid destory previous snippet field, try to restore the pre-completion state
by removing text inserted by company first. If company does more than insertion,
restore the whole line as how it's done originally.

Fixes #33
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

1 participant