Skip to content

Commit 1b82084

Browse files
committed
dont depend on ra_editor directly
1 parent 1c25bf0 commit 1b82084

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_analysis/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ pub use crate::{
4040
completion::{CompletionItem, CompletionItemKind, InsertText},
4141
runnables::{Runnable, RunnableKind},
4242
};
43-
pub use ra_editor::{Fold, FoldKind, HighlightedRange, LineIndex, Severity, StructureNode};
43+
pub use ra_editor::{
44+
Fold, FoldKind, HighlightedRange, Severity, StructureNode,
45+
LineIndex, LineCol, translate_offset_with_edit,
46+
};
4447

4548
pub use ra_db::{
4649
Cancelable, Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, FilesDatabase,

crates/ra_lsp_server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ parking_lot = "0.7.0"
2828

2929
thread_worker = { path = "../thread_worker" }
3030
ra_syntax = { path = "../ra_syntax" }
31-
ra_editor = { path = "../ra_editor" }
3231
ra_text_edit = { path = "../ra_text_edit" }
3332
ra_analysis = { path = "../ra_analysis" }
3433
gen_lsp_server = { path = "../gen_lsp_server" }

crates/ra_lsp_server/src/conv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use languageserver_types::{
77
use ra_analysis::{
88
CompletionItem, CompletionItemKind, FileId, FilePosition, FileRange, FileSystemEdit,
99
InsertText, NavigationTarget, SourceChange, SourceFileEdit,
10+
LineCol, LineIndex, translate_offset_with_edit
1011
};
11-
use ra_editor::{translate_offset_with_edit, LineCol, LineIndex};
1212
use ra_syntax::{SyntaxKind, TextRange, TextUnit};
1313
use ra_text_edit::{AtomTextEdit, TextEdit};
1414

0 commit comments

Comments
 (0)