rust/crates/rust-analyzer
David Tolnay 19b27f2ec9
Declare required lsp-server dependency of rust-analyzer crate
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:

    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`
2020-06-03 17:55:48 -07:00
..
src Fix more comments 2020-06-03 19:33:57 +02:00
tests/heavy_tests Mark fixes from diagnostics as quick fixes 2020-06-03 09:31:32 -04:00
build.rs Remove unused placeholder 2020-02-21 18:33:45 +08:00
Cargo.toml Declare required lsp-server dependency of rust-analyzer crate 2020-06-03 17:55:48 -07:00