aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-21 08:15:23 +0000
committerAleksey Kladov <[email protected]>2018-12-21 08:15:23 +0000
commitaa628f474947c46871e1ec82f87be5fc99974b36 (patch)
tree3660dc8350495ed59cdab72c31f69e4d377eaf2d /crates/ra_lsp_server
parentf897de5b783bacc3e6ea796ef8f3e60f4b8ac808 (diff)
fix SourceFileEdit name
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/conv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs
index 7467f472c..198dbfc49 100644
--- a/crates/ra_lsp_server/src/conv.rs
+++ b/crates/ra_lsp_server/src/conv.rs
@@ -2,7 +2,7 @@ use languageserver_types::{
2 self, Location, Position, Range, SymbolKind, TextDocumentEdit, TextDocumentIdentifier, 2 self, Location, Position, Range, SymbolKind, TextDocumentEdit, TextDocumentIdentifier,
3 TextDocumentItem, TextDocumentPositionParams, Url, VersionedTextDocumentIdentifier, 3 TextDocumentItem, TextDocumentPositionParams, Url, VersionedTextDocumentIdentifier,
4}; 4};
5use ra_analysis::{FileId, FileSystemEdit, SourceChange, SourceFileNodeEdit, FilePosition}; 5use ra_analysis::{FileId, FileSystemEdit, SourceChange, SourceFileEdit, FilePosition};
6use ra_editor::{LineCol, LineIndex}; 6use ra_editor::{LineCol, LineIndex};
7use ra_text_edit::{AtomTextEdit, TextEdit}; 7use ra_text_edit::{AtomTextEdit, TextEdit};
8use ra_syntax::{SyntaxKind, TextRange, TextUnit}; 8use ra_syntax::{SyntaxKind, TextRange, TextUnit};
@@ -256,7 +256,7 @@ fn translate_offset_with_edit(
256 } 256 }
257} 257}
258 258
259impl TryConvWith for SourceFileNodeEdit { 259impl TryConvWith for SourceFileEdit {
260 type Ctx = ServerWorld; 260 type Ctx = ServerWorld;
261 type Output = TextDocumentEdit; 261 type Output = TextDocumentEdit;
262 fn try_conv_with(self, world: &ServerWorld) -> Result<TextDocumentEdit> { 262 fn try_conv_with(self, world: &ServerWorld) -> Result<TextDocumentEdit> {