-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes and improvements around text synchronisation (#411)
* Purge consolidated protocols before compilation Fixes #395 * move to dialyzer_test.exs * dialyzer_enabled? is already asserted at call site * add argument type assertions * return invalid_param when handling a request involving not open uri * add tests for text synchronization fixes some issues when certain sequence of notifications would create nil entries in source_files map * warn when cancelling unknown request * fix difference in watched extensions * add tests to workspace/didChangeWatchedFiles fix some consistency issues: dirty? flag not updated when file modified outside (no didSave) rebuild not triggered when opened dirty file modified outside * add tests for SourceFile.apply_content_changes based on https://github.com/microsoft/vscode-languageserver-node fixes a few edge cases when dealing with invalid ranges * add test * add utf test * add test fix full_range invalid when last line with unicode * fix apply_content_changes not preserving windows line endings * wip * do not warn if consolidation path does not exist * fix tests * return invalid_request * handle invalid uri in async requests * return invalid_request for not matched commands * handle client request errors * run formatter * rename * Refactor implementation of SourceFile.lines_with_endings The previous implementation did not have any bugs (that I saw), but I did find it more difficult to read and understand. I expect performance to be comparable. For more comprehensive testing I have added StreamData which adds property-based testing. We can probably use that in other portions of the code base as well. * Update apps/language_server/test/source_file_test.exs Co-authored-by: Jason Axelson <axelson@users.noreply.github.com> * run formatter * add disclaimer * combine lines_with_endings test cases Co-authored-by: Jason Axelson <jason.axelson@gmail.com> Co-authored-by: Jason Axelson <axelson@users.noreply.github.com>
- Loading branch information
1 parent
7c27bce
commit 0851d87
Showing
14 changed files
with
1,436 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/language_server/lib/language_server/providers/signature_help.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.