diff options
author | Ville Penttinen <[email protected]> | 2019-03-06 09:34:38 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-06 09:34:38 +0000 |
commit | 0dcb1cb569417a17e27a4d8b34813ded41395268 (patch) | |
tree | 123896a906abdfb6de3c0e3f13e0c69e98e3cc01 /crates/ra_lsp_server/tests/heavy_tests | |
parent | ce118da149a0db1815f188c9914001608a5ac09e (diff) |
Add showWorkspaceLoadedNotification to vscode client
This allows users to control whether or not they want to see the "workspace
loaded" notification.
This is done on the server side using InitializationOptions which are provided
by the client. By default show_workspace_loaded is true, meaning the
notification is sent.
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests')
-rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/support.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/support.rs b/crates/ra_lsp_server/tests/heavy_tests/support.rs index 08f7ad6fd..8bfc8d622 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/support.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/support.rs | |||
@@ -23,6 +23,7 @@ use test_utils::{parse_fixture, find_mismatch}; | |||
23 | 23 | ||
24 | use ra_lsp_server::{ | 24 | use ra_lsp_server::{ |
25 | main_loop, req, | 25 | main_loop, req, |
26 | InitializationOptions, | ||
26 | }; | 27 | }; |
27 | 28 | ||
28 | pub fn project(fixture: &str) -> Server { | 29 | pub fn project(fixture: &str) -> Server { |
@@ -57,7 +58,13 @@ impl Server { | |||
57 | "test server", | 58 | "test server", |
58 | 128, | 59 | 128, |
59 | move |mut msg_receiver, mut msg_sender| { | 60 | move |mut msg_receiver, mut msg_sender| { |
60 | main_loop(path, true, &mut msg_receiver, &mut msg_sender).unwrap() | 61 | main_loop( |
62 | path, | ||
63 | InitializationOptions::default(), | ||
64 | &mut msg_receiver, | ||
65 | &mut msg_sender, | ||
66 | ) | ||
67 | .unwrap() | ||
61 | }, | 68 | }, |
62 | ); | 69 | ); |
63 | let res = Server { | 70 | let res = Server { |