pub struct ServerInitConfig {
pub server_config: LspServerConfig,
pub workspace_roots: Vec<PathBuf>,
pub initialization_options: Option<Value>,
pub notification_tx: Option<Sender<LspNotification>>,
}Expand description
Configuration for LSP server initialization.
Fields§
§server_config: LspServerConfigLSP server configuration.
workspace_roots: Vec<PathBuf>Workspace root paths.
initialization_options: Option<Value>Initialization options (server-specific JSON).
notification_tx: Option<Sender<LspNotification>>Optional channel for forwarding LSP notifications to the notification cache.
When Some, the spawned LSP client sends every notification it receives
(publishDiagnostics, logMessage, showMessage, …) through this sender.
The caller is responsible for draining the corresponding receiver and
storing entries in crate::bridge::NotificationCache.
Trait Implementations§
Source§impl Clone for ServerInitConfig
impl Clone for ServerInitConfig
Source§fn clone(&self) -> ServerInitConfig
fn clone(&self) -> ServerInitConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerInitConfig
impl RefUnwindSafe for ServerInitConfig
impl Send for ServerInitConfig
impl Sync for ServerInitConfig
impl Unpin for ServerInitConfig
impl UnsafeUnpin for ServerInitConfig
impl UnwindSafe for ServerInitConfig
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