mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
This commit is contained in:
parent
2b2cd829b0
commit
1834bae5b8
166 changed files with 798 additions and 814 deletions
|
@ -1,18 +1,11 @@
|
|||
use crate::{
|
||||
completion::{
|
||||
completion_item::{
|
||||
Completions,
|
||||
Builder,
|
||||
CompletionKind,
|
||||
},
|
||||
completion_context::CompletionContext,
|
||||
completion_item::{Builder, CompletionKind, Completions},
|
||||
},
|
||||
CompletionItem
|
||||
};
|
||||
use ra_syntax::{
|
||||
ast::AstNode,
|
||||
TextRange
|
||||
CompletionItem,
|
||||
};
|
||||
use ra_syntax::{ast::AstNode, TextRange};
|
||||
use ra_text_edit::TextEditBuilder;
|
||||
|
||||
fn postfix_snippet(ctx: &CompletionContext, label: &str, detail: &str, snippet: &str) -> Builder {
|
||||
|
@ -58,7 +51,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::completion::{CompletionKind, check_completion};
|
||||
use crate::completion::{check_completion, CompletionKind};
|
||||
|
||||
fn check_snippet_completion(test_name: &str, code: &str) {
|
||||
check_completion(test_name, code, CompletionKind::Postfix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue