aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-08 17:31:43 +0000
committerAleksey Kladov <[email protected]>2019-01-08 18:01:41 +0000
commit1b82084a5f28506134c668a67d2759ef22be6a80 (patch)
treea2c7ec6ad3b75481268f8246b1b02b133f37d8d8
parent1c25bf05d714680c048d250a5d39e8a4c25f0c31 (diff)
dont depend on ra_editor directly
-rw-r--r--Cargo.lock1
-rw-r--r--crates/ra_analysis/src/lib.rs5
-rw-r--r--crates/ra_lsp_server/Cargo.toml1
-rw-r--r--crates/ra_lsp_server/src/conv.rs2
4 files changed, 5 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 949a58e86..a981989dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -736,7 +736,6 @@ dependencies = [
736 "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 736 "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
737 "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 737 "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
738 "ra_analysis 0.1.0", 738 "ra_analysis 0.1.0",
739 "ra_editor 0.1.0",
740 "ra_syntax 0.1.0", 739 "ra_syntax 0.1.0",
741 "ra_text_edit 0.1.0", 740 "ra_text_edit 0.1.0",
742 "ra_vfs 0.1.0", 741 "ra_vfs 0.1.0",
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index 771a349c8..a3b350ad7 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -40,7 +40,10 @@ pub use crate::{
40 completion::{CompletionItem, CompletionItemKind, InsertText}, 40 completion::{CompletionItem, CompletionItemKind, InsertText},
41 runnables::{Runnable, RunnableKind}, 41 runnables::{Runnable, RunnableKind},
42}; 42};
43pub use ra_editor::{Fold, FoldKind, HighlightedRange, LineIndex, Severity, StructureNode}; 43pub use ra_editor::{
44 Fold, FoldKind, HighlightedRange, Severity, StructureNode,
45 LineIndex, LineCol, translate_offset_with_edit,
46};
44 47
45pub use ra_db::{ 48pub use ra_db::{
46 Cancelable, Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, FilesDatabase, 49 Cancelable, Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, FilesDatabase,
diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml
index 8bd4caa53..b9fd61105 100644
--- a/crates/ra_lsp_server/Cargo.toml
+++ b/crates/ra_lsp_server/Cargo.toml
@@ -28,7 +28,6 @@ parking_lot = "0.7.0"
28 28
29thread_worker = { path = "../thread_worker" } 29thread_worker = { path = "../thread_worker" }
30ra_syntax = { path = "../ra_syntax" } 30ra_syntax = { path = "../ra_syntax" }
31ra_editor = { path = "../ra_editor" }
32ra_text_edit = { path = "../ra_text_edit" } 31ra_text_edit = { path = "../ra_text_edit" }
33ra_analysis = { path = "../ra_analysis" } 32ra_analysis = { path = "../ra_analysis" }
34gen_lsp_server = { path = "../gen_lsp_server" } 33gen_lsp_server = { path = "../gen_lsp_server" }
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs
index e8eb3940f..b3f8c83cc 100644
--- a/crates/ra_lsp_server/src/conv.rs
+++ b/crates/ra_lsp_server/src/conv.rs
@@ -7,8 +7,8 @@ use languageserver_types::{
7use ra_analysis::{ 7use ra_analysis::{
8 CompletionItem, CompletionItemKind, FileId, FilePosition, FileRange, FileSystemEdit, 8 CompletionItem, CompletionItemKind, FileId, FilePosition, FileRange, FileSystemEdit,
9 InsertText, NavigationTarget, SourceChange, SourceFileEdit, 9 InsertText, NavigationTarget, SourceChange, SourceFileEdit,
10 LineCol, LineIndex, translate_offset_with_edit
10}; 11};
11use ra_editor::{translate_offset_with_edit, LineCol, LineIndex};
12use ra_syntax::{SyntaxKind, TextRange, TextUnit}; 12use ra_syntax::{SyntaxKind, TextRange, TextUnit};
13use ra_text_edit::{AtomTextEdit, TextEdit}; 13use ra_text_edit::{AtomTextEdit, TextEdit};
14 14