diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-04 11:45:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-04 11:45:06 +0100 |
commit | a1ca1e75982648191834125177071f6f038ee72c (patch) | |
tree | f7987b718aba090c58a1fad0ba380d3dad5f025e /crates/ra_ide/src/completion/complete_postfix.rs | |
parent | 06638ff848f092432a9818bbc81c7ee18e93a003 (diff) | |
parent | 19b27f2ec93e30a32643caf173accdc238d86683 (diff) |
Merge #4739
4739: Declare required lsp-server dependency of rust-analyzer crate r=jonas-schievink a=dtolnay
My codebase already depended on lsp-server and introducing a dependency on rust-analyzer failed at first because it assumes some functions that were first present in lsp-server 0.3.2.
Without this change:
```console
error[E0599]: no method named `initialize_start` found for struct `lsp_server::Connection` in the current scope
--> crates/rust-analyzer/./src/bin/main.rs:83:57
|
83 | let (initialize_id, initialize_params) = connection.initialize_start()?;
| ^^^^^^^^^^^^^^^^ method not found in `lsp_server::Connection`
error[E0599]: no method named `initialize_finish` found for struct `lsp_server::Connection` in the current scope
--> crates/rust-analyzer/./src/bin/main.rs:99:16
|
99 | connection.initialize_finish(initialize_id, initialize_result)?;
| ^^^^^^^^^^^^^^^^^ method not found in `lsp_server::Connection`
```
Co-authored-by: David Tolnay <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/completion/complete_postfix.rs')
0 files changed, 0 insertions, 0 deletions