pub struct AcpLspConfig {
pub enabled: bool,
pub auto_diagnostics_on_save: bool,
pub max_diagnostics_per_file: usize,
pub max_diagnostic_files: usize,
pub max_references: usize,
pub max_workspace_symbols: usize,
pub request_timeout_secs: u64,
}Expand description
Configuration for the ACP LSP extension.
Controls LSP code intelligence features when connected to an IDE that advertises
meta["lsp"] capability during ACP initialize.
Fields§
§enabled: boolEnable LSP extension when the IDE supports it. Default: true.
auto_diagnostics_on_save: boolAutomatically fetch diagnostics when lsp/didSave notification is received.
max_diagnostics_per_file: usizeMaximum diagnostics to accept per file. Default: 20.
max_diagnostic_files: usizeMaximum files in DiagnosticsCache (LRU eviction). Default: 5.
max_references: usizeMaximum reference locations returned. Default: 100.
max_workspace_symbols: usizeMaximum workspace symbol search results. Default: 50.
request_timeout_secs: u64Timeout in seconds for LSP ext_method calls. Default: 10.
Trait Implementations§
Source§impl Clone for AcpLspConfig
impl Clone for AcpLspConfig
Source§fn clone(&self) -> AcpLspConfig
fn clone(&self) -> AcpLspConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcpLspConfig
impl Debug for AcpLspConfig
Source§impl Default for AcpLspConfig
impl Default for AcpLspConfig
Source§impl<'de> Deserialize<'de> for AcpLspConfig
impl<'de> Deserialize<'de> for AcpLspConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AcpLspConfig
impl RefUnwindSafe for AcpLspConfig
impl Send for AcpLspConfig
impl Sync for AcpLspConfig
impl Unpin for AcpLspConfig
impl UnsafeUnpin for AcpLspConfig
impl UnwindSafe for AcpLspConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request