pub struct Config { /* private fields */ }Expand description
Global configuration facade that exposes read-only handles to each settings struct.
Implementations§
Source§impl Config
impl Config
pub fn new(plugin: PluginSettings) -> Self
pub fn plugin_mut(&mut self) -> &mut PluginSettings
pub fn plugin(&self) -> &PluginSettings
Sourcepub fn apply_workspace_settings(&mut self, settings: &Value) -> bool
pub fn apply_workspace_settings(&mut self, settings: &Value) -> bool
Applies workspace/didChangeConfiguration payloads to the cached
settings. Returns true when any recognized option changed.
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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