pub struct LocalCodeIntelligence { /* private fields */ }Expand description
Native local provider sharing the workspace manifest’s existing watcher.
Implementations§
Source§impl LocalCodeIntelligence
impl LocalCodeIntelligence
Sourcepub async fn start(
isolation_scope: impl Into<String>,
manifest: Arc<LocalWorkspaceManifest>,
file_system: Arc<dyn WorkspaceFileSystem>,
) -> CodeIntelligenceResult<Arc<Self>>
pub async fn start( isolation_scope: impl Into<String>, manifest: Arc<LocalWorkspaceManifest>, file_system: Arc<dyn WorkspaceFileSystem>, ) -> CodeIntelligenceResult<Arc<Self>>
Create a provider and acquire a cheap, lazily-started runtime generation.
Trait Implementations§
Source§impl Debug for LocalCodeIntelligence
impl Debug for LocalCodeIntelligence
Source§impl Drop for LocalCodeIntelligence
impl Drop for LocalCodeIntelligence
Source§impl WorkspaceCodeIntelligence for LocalCodeIntelligence
impl WorkspaceCodeIntelligence for LocalCodeIntelligence
Source§fn subscribe_status(&self) -> Receiver<CodeIntelligenceStatus>
fn subscribe_status(&self) -> Receiver<CodeIntelligenceStatus>
Subscribe to runtime lifecycle and capability changes.
Source§fn document_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 WorkspacePath,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<DocumentSymbol>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn document_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 WorkspacePath,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<DocumentSymbol>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the hierarchical symbol outline for a saved document.
Source§fn search_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<SymbolInformation>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<SymbolInformation>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search symbols across the workspace, bounded by
limit.Resolve one semantic navigation operation from a saved document.
Source§fn diagnostics<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 WorkspacePath>,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<CodeDiagnostic>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn diagnostics<'life0, 'life1, 'async_trait>(
&'life0 self,
path: Option<&'life1 WorkspacePath>,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = CodeIntelligenceResult<CodeQueryResult<CodeDiagnostic>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Pull diagnostics for one saved document, or for the workspace when
path is None.Source§fn status(&self) -> CodeIntelligenceStatus
fn status(&self) -> CodeIntelligenceStatus
Return the latest status snapshot without waiting for a state change.
Auto Trait Implementations§
impl !Freeze for LocalCodeIntelligence
impl !RefUnwindSafe for LocalCodeIntelligence
impl !UnwindSafe for LocalCodeIntelligence
impl Send for LocalCodeIntelligence
impl Sync for LocalCodeIntelligence
impl Unpin for LocalCodeIntelligence
impl UnsafeUnpin for LocalCodeIntelligence
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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