diff options
author | Aleksey Kladov <[email protected]> | 2018-12-21 08:15:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-21 08:15:23 +0000 |
commit | aa628f474947c46871e1ec82f87be5fc99974b36 (patch) | |
tree | 3660dc8350495ed59cdab72c31f69e4d377eaf2d /crates/ra_lsp_server/src | |
parent | f897de5b783bacc3e6ea796ef8f3e60f4b8ac808 (diff) |
fix SourceFileEdit name
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/conv.rs | 4 |
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 | }; |
5 | use ra_analysis::{FileId, FileSystemEdit, SourceChange, SourceFileNodeEdit, FilePosition}; | 5 | use ra_analysis::{FileId, FileSystemEdit, SourceChange, SourceFileEdit, FilePosition}; |
6 | use ra_editor::{LineCol, LineIndex}; | 6 | use ra_editor::{LineCol, LineIndex}; |
7 | use ra_text_edit::{AtomTextEdit, TextEdit}; | 7 | use ra_text_edit::{AtomTextEdit, TextEdit}; |
8 | use ra_syntax::{SyntaxKind, TextRange, TextUnit}; | 8 | use ra_syntax::{SyntaxKind, TextRange, TextUnit}; |
@@ -256,7 +256,7 @@ fn translate_offset_with_edit( | |||
256 | } | 256 | } |
257 | } | 257 | } |
258 | 258 | ||
259 | impl TryConvWith for SourceFileNodeEdit { | 259 | impl 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> { |