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

Text editing cleanup/testability #577

Merged
merged 5 commits into from
Apr 28, 2019
Merged

Text editing cleanup/testability #577

merged 5 commits into from
Apr 28, 2019

Conversation

tomv564
Copy link
Contributor

@tomv564 tomv564 commented Apr 27, 2019

Separate sublime-tied logic to plugin/edit.py.
Add tests for remaining logic (response parsing, sorting)
Remove debugging status/logging when applying doc edits.

Part of an effort to improve unit test coverage.

Move response parsing to protocol
Extract non-sublime-tied logic from commands
Remove debugging status/logging when applying doc edits.
Simplify sorting of document edits (assuming stable sorting)
@tomv564 tomv564 changed the title Initial cleanup Text editing cleanup/testability Apr 27, 2019
plugin/formatting.py Outdated Show resolved Hide resolved
plugin/core/edit.py Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Apr 28, 2019

Coverage Status

Coverage increased (+0.8%) to 32.224% when pulling 921ee18 on refactor-edit into bc46965 on master.

@tomv564 tomv564 merged commit 4771eb2 into master Apr 28, 2019
@tomv564 tomv564 deleted the refactor-edit branch April 28, 2019 19:13
plasticine pushed a commit to plasticine/LSP that referenced this pull request Jun 4, 2019
* Initial cleanup

Move response parsing to protocol
Extract non-sublime-tied logic from commands
Remove debugging status/logging when applying doc edits.
Simplify sorting of document edits (assuming stable sorting)

* Fix typing issues

* Move commands out of core, add tests

* Fix lint issue

* Name tests correctly and fix data
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