mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Better names for config structs
This commit is contained in:
parent
f5b01d6544
commit
569f47e427
13 changed files with 102 additions and 104 deletions
|
@ -62,13 +62,13 @@ use crate::display::ToNav;
|
|||
pub use crate::{
|
||||
assists::{Assist, AssistId},
|
||||
call_hierarchy::CallItem,
|
||||
completion::{CompletionItem, CompletionItemKind, CompletionOptions, InsertTextFormat},
|
||||
completion::{CompletionConfig, CompletionItem, CompletionItemKind, InsertTextFormat},
|
||||
diagnostics::Severity,
|
||||
display::{file_structure, FunctionSignature, NavigationTarget, StructureNode},
|
||||
expand_macro::ExpandedMacro,
|
||||
folding_ranges::{Fold, FoldKind},
|
||||
hover::HoverResult,
|
||||
inlay_hints::{InlayHint, InlayHintsOptions, InlayKind},
|
||||
inlay_hints::{InlayHint, InlayHintsConfig, InlayKind},
|
||||
references::{Declaration, Reference, ReferenceAccess, ReferenceKind, ReferenceSearchResult},
|
||||
runnables::{Runnable, RunnableKind, TestId},
|
||||
source_change::{FileSystemEdit, SourceChange, SourceFileEdit},
|
||||
|
@ -325,9 +325,9 @@ impl Analysis {
|
|||
pub fn inlay_hints(
|
||||
&self,
|
||||
file_id: FileId,
|
||||
inlay_hint_opts: &InlayHintsOptions,
|
||||
config: &InlayHintsConfig,
|
||||
) -> Cancelable<Vec<InlayHint>> {
|
||||
self.with_db(|db| inlay_hints::inlay_hints(db, file_id, inlay_hint_opts))
|
||||
self.with_db(|db| inlay_hints::inlay_hints(db, file_id, config))
|
||||
}
|
||||
|
||||
/// Returns the set of folding ranges.
|
||||
|
@ -450,9 +450,9 @@ impl Analysis {
|
|||
pub fn completions(
|
||||
&self,
|
||||
position: FilePosition,
|
||||
options: &CompletionOptions,
|
||||
config: &CompletionConfig,
|
||||
) -> Cancelable<Option<Vec<CompletionItem>>> {
|
||||
self.with_db(|db| completion::completions(db, position, options).map(Into::into))
|
||||
self.with_db(|db| completion::completions(db, position, config).map(Into::into))
|
||||
}
|
||||
|
||||
/// Computes assists (aka code actions aka intentions) for the given
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue