pub struct IdeIntegrationManager { /* private fields */ }Expand description
IDE Integration Manager
Implementations§
Source§impl IdeIntegrationManager
impl IdeIntegrationManager
Sourcepub fn new(
config: IdeIntegrationConfig,
provider_chain: Arc<ProviderChainManager>,
) -> Self
pub fn new( config: IdeIntegrationConfig, provider_chain: Arc<ProviderChainManager>, ) -> Self
Create a new IDE Integration Manager
Sourcepub async fn handle_completion_request(
&self,
params: &CompletionParams,
) -> IdeResult<Vec<CompletionItem>>
pub async fn handle_completion_request( &self, params: &CompletionParams, ) -> IdeResult<Vec<CompletionItem>>
Handle completion request
Sourcepub async fn handle_diagnostics_request(
&self,
params: &DiagnosticsParams,
) -> IdeResult<Vec<Diagnostic>>
pub async fn handle_diagnostics_request( &self, params: &DiagnosticsParams, ) -> IdeResult<Vec<Diagnostic>>
Handle diagnostics request
Sourcepub async fn handle_hover_request(
&self,
params: &HoverParams,
) -> IdeResult<Option<Hover>>
pub async fn handle_hover_request( &self, params: &HoverParams, ) -> IdeResult<Option<Hover>>
Handle hover request
Sourcepub async fn handle_definition_request(
&self,
params: &DefinitionParams,
) -> IdeResult<Option<Location>>
pub async fn handle_definition_request( &self, params: &DefinitionParams, ) -> IdeResult<Option<Location>>
Handle definition request
Sourcepub async fn establish_connection(&self, ide_type: &str) -> IdeResult<()>
pub async fn establish_connection(&self, ide_type: &str) -> IdeResult<()>
Establish connection with IDE
Sourcepub async fn close_connection(&self, ide_type: &str) -> IdeResult<()>
pub async fn close_connection(&self, ide_type: &str) -> IdeResult<()>
Close connection with IDE
Sourcepub fn config(&self) -> &IdeIntegrationConfig
pub fn config(&self) -> &IdeIntegrationConfig
Get configuration
Auto Trait Implementations§
impl Freeze for IdeIntegrationManager
impl !RefUnwindSafe for IdeIntegrationManager
impl Send for IdeIntegrationManager
impl Sync for IdeIntegrationManager
impl Unpin for IdeIntegrationManager
impl !UnwindSafe for IdeIntegrationManager
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