aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r--crates/ra_lsp_server/src/world.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs
index 27da751ab..51824e7a3 100644
--- a/crates/ra_lsp_server/src/world.rs
+++ b/crates/ra_lsp_server/src/world.rs
@@ -27,6 +27,7 @@ use crate::{
27pub struct Options { 27pub struct Options {
28 pub publish_decorations: bool, 28 pub publish_decorations: bool,
29 pub supports_location_link: bool, 29 pub supports_location_link: bool,
30 pub line_folding_only: bool,
30} 31}
31 32
32/// `WorldState` is the primary mutable state of the language server 33/// `WorldState` is the primary mutable state of the language server
@@ -98,8 +99,12 @@ impl WorldState {
98 } 99 }
99 100
100 // FIXME: Read default cfgs from config 101 // FIXME: Read default cfgs from config
101 let default_cfg_options = 102 let default_cfg_options = {
102 get_rustc_cfg_options().atom("test".into()).atom("debug_assertion".into()); 103 let mut opts = get_rustc_cfg_options();
104 opts.insert_atom("test".into());
105 opts.insert_atom("debug_assertion".into());
106 opts
107 };
103 108
104 // Create crate graph from all the workspaces 109 // Create crate graph from all the workspaces
105 let mut crate_graph = CrateGraph::default(); 110 let mut crate_graph = CrateGraph::default();