diff options
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index f5c8535a2..85898f495 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -6,7 +6,7 @@ use std::{ | |||
6 | }; | 6 | }; |
7 | 7 | ||
8 | use ide::{ | 8 | use ide::{ |
9 | Annotation, AnnotationKind, Assist, AssistKind, CallInfo, Cancelable, CompletionItem, | 9 | Annotation, AnnotationKind, Assist, AssistKind, CallInfo, Cancellable, CompletionItem, |
10 | CompletionItemKind, CompletionRelevance, Documentation, FileId, FileRange, FileSystemEdit, | 10 | CompletionItemKind, CompletionRelevance, Documentation, FileId, FileRange, FileSystemEdit, |
11 | Fold, FoldKind, Highlight, HlMod, HlOperator, HlPunct, HlRange, HlTag, Indel, InlayHint, | 11 | Fold, FoldKind, Highlight, HlMod, HlOperator, HlPunct, HlRange, HlTag, Indel, InlayHint, |
12 | InlayKind, InsertTextFormat, Markup, NavigationTarget, ReferenceAccess, RenameError, Runnable, | 12 | InlayKind, InsertTextFormat, Markup, NavigationTarget, ReferenceAccess, RenameError, Runnable, |
@@ -727,7 +727,7 @@ pub(crate) fn snippet_text_document_edit( | |||
727 | pub(crate) fn snippet_text_document_ops( | 727 | pub(crate) fn snippet_text_document_ops( |
728 | snap: &GlobalStateSnapshot, | 728 | snap: &GlobalStateSnapshot, |
729 | file_system_edit: FileSystemEdit, | 729 | file_system_edit: FileSystemEdit, |
730 | ) -> Cancelable<Vec<lsp_ext::SnippetDocumentChangeOperation>> { | 730 | ) -> Cancellable<Vec<lsp_ext::SnippetDocumentChangeOperation>> { |
731 | let mut ops = Vec::new(); | 731 | let mut ops = Vec::new(); |
732 | match file_system_edit { | 732 | match file_system_edit { |
733 | FileSystemEdit::CreateFile { dst, initial_contents } => { | 733 | FileSystemEdit::CreateFile { dst, initial_contents } => { |
@@ -757,7 +757,7 @@ pub(crate) fn snippet_text_document_ops( | |||
757 | let new_uri = snap.anchored_path(&dst); | 757 | let new_uri = snap.anchored_path(&dst); |
758 | let mut rename_file = | 758 | let mut rename_file = |
759 | lsp_types::RenameFile { old_uri, new_uri, options: None, annotation_id: None }; | 759 | lsp_types::RenameFile { old_uri, new_uri, options: None, annotation_id: None }; |
760 | if snap.analysis.is_library_file(src) == Ok(true) | 760 | if snap.analysis.is_library_file(src).ok() == Some(true) |
761 | && snap.config.change_annotation_support() | 761 | && snap.config.change_annotation_support() |
762 | { | 762 | { |
763 | rename_file.annotation_id = Some(outside_workspace_annotation_id()) | 763 | rename_file.annotation_id = Some(outside_workspace_annotation_id()) |