diff options
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index 73d7f8fb9..e1c5c3343 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs | |||
@@ -11,13 +11,13 @@ use ra_ide_api::{ | |||
11 | Analysis, AnalysisChange, AnalysisHost, CrateGraph, FeatureFlags, FileId, LibraryData, | 11 | Analysis, AnalysisChange, AnalysisHost, CrateGraph, FeatureFlags, FileId, LibraryData, |
12 | SourceRootId, | 12 | SourceRootId, |
13 | }; | 13 | }; |
14 | use ra_project_model::ProjectWorkspace; | ||
14 | use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask}; | 15 | use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask}; |
15 | use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; | 16 | use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; |
16 | use relative_path::RelativePathBuf; | 17 | use relative_path::RelativePathBuf; |
17 | 18 | ||
18 | use crate::{ | 19 | use crate::{ |
19 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, | 20 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, |
20 | project_model::ProjectWorkspace, | ||
21 | LspError, Result, | 21 | LspError, Result, |
22 | }; | 22 | }; |
23 | 23 | ||
@@ -35,6 +35,7 @@ pub struct Options { | |||
35 | #[derive(Debug)] | 35 | #[derive(Debug)] |
36 | pub struct WorldState { | 36 | pub struct WorldState { |
37 | pub options: Options, | 37 | pub options: Options, |
38 | //FIXME: this belongs to `LoopState` rather than to `WorldState` | ||
38 | pub roots_to_scan: usize, | 39 | pub roots_to_scan: usize, |
39 | pub roots: Vec<PathBuf>, | 40 | pub roots: Vec<PathBuf>, |
40 | pub workspaces: Arc<Vec<ProjectWorkspace>>, | 41 | pub workspaces: Arc<Vec<ProjectWorkspace>>, |