pub struct IdeConfigApplicator;Expand description
IDE configuration applicator
Implementations§
Source§impl IdeConfigApplicator
impl IdeConfigApplicator
Sourcepub fn extract_settings(
config: &IdeIntegrationConfig,
ide_type: IdeType,
) -> IdeResult<IdeSpecificSettings>
pub fn extract_settings( config: &IdeIntegrationConfig, ide_type: IdeType, ) -> IdeResult<IdeSpecificSettings>
Extract IDE-specific settings from configuration
Sourcepub fn apply_completion_behavior(
items: &mut Vec<CompletionItem>,
settings: &IdeSpecificSettings,
)
pub fn apply_completion_behavior( items: &mut Vec<CompletionItem>, settings: &IdeSpecificSettings, )
Apply IDE-specific behavior to completion items
Sourcepub fn apply_diagnostics_behavior(
diagnostics: &mut Vec<Diagnostic>,
settings: &IdeSpecificSettings,
)
pub fn apply_diagnostics_behavior( diagnostics: &mut Vec<Diagnostic>, settings: &IdeSpecificSettings, )
Apply IDE-specific behavior to diagnostics
Sourcepub fn apply_hover_behavior(
hover: &mut Option<Hover>,
settings: &IdeSpecificSettings,
)
pub fn apply_hover_behavior( hover: &mut Option<Hover>, settings: &IdeSpecificSettings, )
Apply IDE-specific behavior to hover information
Sourcepub fn validate_settings(settings: &IdeSpecificSettings) -> IdeResult<()>
pub fn validate_settings(settings: &IdeSpecificSettings) -> IdeResult<()>
Validate IDE-specific settings
Auto Trait Implementations§
impl Freeze for IdeConfigApplicator
impl RefUnwindSafe for IdeConfigApplicator
impl Send for IdeConfigApplicator
impl Sync for IdeConfigApplicator
impl Unpin for IdeConfigApplicator
impl UnwindSafe for IdeConfigApplicator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more