-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle incoming notifications/responses during a sync request (#787)
This seems to work for eslint where textDocument/publishDiagnostics are sent during a textDocument/willSaveWatUntil request. Tested this with the following js file: ```javascript const a = 1; ``` and the following .eslintrc.yaml: ```yaml --- env: node: true parserOptions: ecmaVersion: 2018 sourceType: module extends: 'eslint:recommended' rules: semi: error ``` using the LSP-eslint package to set up the eslint language server. * Run notifications and responses before running the handler for the blocking request * Add more test assertions * Allow handling errors in synchronous requests We mirror the behavior in execute_request of send_request * Handle invalid params by passing them as errors * Fix tests locking up * It is not needed to call start_active_views(), it'll happen automatically.
- Loading branch information
Showing
8 changed files
with
389 additions
and
143 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.