-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(completions): improve cursor position detection (#444)
* refactor(completions): improve cursor position detection * fixup! refactor(completions): improve cursor position detection * use completionItem/resolve to fetch docs - this makes completion faster because we defer fetching docs - we binary_to_term/encode the relevant data to put in the data which then gets sent back up on the resolve request - also includes signature in docs - makes cursor finding faster by skipping subtrees that don't contain the cursor position code is still WIP, which is why its ugly on average of typing around in the next_ls.ex file, completions seem to be around 45-55ms. still not as fast as I'd like them, but still decent-ish * improve docs handling * more changes * fix variables and work in test blocks * stuff * use container_cursor_to_quoted instead * wip * add support for <- * expand the e in SomeError pattern in rescue clause * remove old way of gather variables * clean up * fix dialyzer * fix * remove commented out code * another * fix tests * fix test
- Loading branch information
Showing
15 changed files
with
652 additions
and
849 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
Oops, something went wrong.