aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/world.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-08-31 12:47:37 +0100
committerAleksey Kladov <[email protected]>2019-08-31 12:47:37 +0100
commit4e3f5cc7293d97aef4630ea30b8e9ad6931589a8 (patch)
tree00e5db62b89604bb005f45368d0caa2642a2d350 /crates/ra_lsp_server/src/world.rs
parentf90a88630195a1b6b542b5883295d66dd6c59cef (diff)
cleanup main loop
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r--crates/ra_lsp_server/src/world.rs3
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};
14use ra_project_model::ProjectWorkspace;
14use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask}; 15use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask};
15use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; 16use ra_vfs_glob::{Glob, RustPackageFilterBuilder};
16use relative_path::RelativePathBuf; 17use relative_path::RelativePathBuf;
17 18
18use crate::{ 19use 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)]
36pub struct WorldState { 36pub 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>>,