pub struct ConfigLoader;Expand description
Loads LSP server configurations from YAML files
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load_from_file(path: &Path) -> Result<LspServerRegistry>
pub fn load_from_file(path: &Path) -> Result<LspServerRegistry>
Load configuration from a YAML file
Sourcepub fn load_from_string(content: &str) -> Result<LspServerRegistry>
pub fn load_from_string(content: &str) -> Result<LspServerRegistry>
Load configuration from a YAML string
Sourcepub fn merge_configs(
runtime: Option<LspServerRegistry>,
project: Option<LspServerRegistry>,
user: Option<LspServerRegistry>,
builtin: LspServerRegistry,
) -> Result<LspServerRegistry>
pub fn merge_configs( runtime: Option<LspServerRegistry>, project: Option<LspServerRegistry>, user: Option<LspServerRegistry>, builtin: LspServerRegistry, ) -> Result<LspServerRegistry>
Merge configurations with hierarchy: Runtime → Project → User → Built-in
Auto Trait Implementations§
impl Freeze for ConfigLoader
impl RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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