mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add custom non-postfix snippets
This commit is contained in:
parent
88f213eadd
commit
046c85ef0c
9 changed files with 315 additions and 83 deletions
|
@ -9,6 +9,7 @@ mod render;
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod snippet;
|
||||
|
||||
use completions::flyimport::position_for_import;
|
||||
use ide_db::{
|
||||
|
@ -24,8 +25,9 @@ use text_edit::TextEdit;
|
|||
use crate::{completions::Completions, context::CompletionContext, item::CompletionKind};
|
||||
|
||||
pub use crate::{
|
||||
config::{CompletionConfig, PostfixSnippet},
|
||||
config::CompletionConfig,
|
||||
item::{CompletionItem, CompletionItemKind, CompletionRelevance, ImportEdit},
|
||||
snippet::{PostfixSnippet, PostfixSnippetScope, Snippet, SnippetScope},
|
||||
};
|
||||
|
||||
//FIXME: split the following feature into fine-grained features.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue