-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge server and provider processes. (#1329)
* Merge server and provider processes. The els_provide process is a remain from the times where providers had their own dedicated processes and it does not currently provide additional value. It actually makes provider errors not bubble up to the client. In fact, in case of a provider error the provider process would crash, but the server would indefinitely wait for a response. The error would not be returned via LSP. This change simplifies the architecture of Erlang LS by merging the els_server and els_provider processes: * Get rid of els_provider process and internal_state * Remove obsolete available_providers function * Do not pass server state to providers As a follow up, it should be possible to: * Pass requests as-they-are (as opposed to only the parameters) to providers, avoiding an un-necessary translation layer * Generalize the code in els_method * Update apps/els_core/src/els_provider.erl Co-authored-by: Michał Muskała <[email protected]> * Fix dialyzer spec Co-authored-by: Michał Muskała <[email protected]>
- Loading branch information
1 parent
3a8c4fa
commit 2c539fd
Showing
25 changed files
with
323 additions
and
454 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
Oops, something went wrong.