Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Add textDocument/formatting. #13

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Conversation

ksdme
Copy link
Member

@ksdme ksdme commented Jul 5, 2018

Built on top of #2.

ksdme added 25 commits July 5, 2018 15:13
Update .gitignore with .idea/ as per Gradle
and Maven auto import.
Drop vscode client since no component of
coala-ls now is specific to or depends
on VSCode.
This updates the README text and updates the
demo assets.
Due to the heavy restructuring required to adapt
this module into architecture for coala-ls the
old codebase is dropped.
Add test resource file with intentional syntax
breaks or containing expected diagnostics.

Add test helpers.
Configures test env to add coalals to sys.path.
Adds files modules and corrosponding tests.
Add log.py that can handle configuring logging.
Add wrappers for methods and streams.
Add support for job tracking, concurrent execution
via abstract process pools.
Add initial mechanism to run coala analyser and
gather the results.
Add module to process the results and convert coala
diagnostic messages to language server supported
messages. Supports code fixing messages also.
Add language server class capable of handling event
notifications and respond accordingly.
Add functions to invoke language server instance
with respective streams as per the invocation mode.
Add __main__ to make coalals an executable module.
Update the requirement to latest versions.
Update the test requirements to use pytest.
- Increase coverage requirement to 100%.
- Update omissions in coverage.
- Updates travis to use py.test.
Add script to start coala-ls.
To make room for the new additions to results
module, this is being refactored to a new sub
module.
Add method to read the contents off the disk of a
corrosponding FileProxy instance.
Parsing patches generated by coala core
can be performed by whatthepatch.
Support parsing and processing fixes from coala core and
transformations and models compatible with lsp.
Add support for collection of fixes from the result of coala
core analysis and produce lsp compatible TextEdits.
Update langserver to support a formatting request types. Currently
formatting type requests fixes any code it can irrespective of the
nature. Also, updates tests to check for documentFormattingProvider.
@ksdme
Copy link
Member Author

ksdme commented Jul 5, 2018

This PR's context begins from the commit named coalals.results: Refactor to submodule .

@ksdme
Copy link
Member Author

ksdme commented Jul 5, 2018

The ordering of commits is all wrong in this thread (https://help.github.com/articles/why-are-my-commits-in-the-wrong-order/), refer to https://github.com/ksdme/coala-ls/commits/gsoc-phase-2 for the true ordering.

@ksdme
Copy link
Member Author

ksdme commented Jul 5, 2018

@gaocegege PTAL and also any idea on how to fix the ordering?

@gaocegege
Copy link
Member

I think the best way is to merge the previous PRs ASAP.

@ksdme
Copy link
Member Author

ksdme commented Jul 5, 2018

Yeah, syncing the PR's is becoming tedious now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants