pub struct PluginSettings {
pub separate_diagnostic_server: bool,
pub publish_diagnostic_on: DiagnosticPublishMode,
pub tsserver: TsserverLaunchOptions,
pub tsserver_preferences: Map<String, Value>,
pub tsserver_format_options: Map<String, Value>,
pub enable_inlay_hints: bool,
}Expand description
Settings that are evaluated once during plugin setup (analogous to the Lua
settings table). Additional fields will be introduced as we port features.
Fields§
§separate_diagnostic_server: boolWhether we spin up a paired semantic tsserver dedicated to diagnostics.
publish_diagnostic_on: DiagnosticPublishModeDetermines when diagnostics are requested ("insert_leave" vs
"change" originally); kept simple for now.
tsserver: TsserverLaunchOptionsLaunch arguments and logging preferences forwarded to tsserver.
tsserver_preferences: Map<String, Value>User preferences forwarded to the tsserver configure command.
tsserver_format_options: Map<String, Value>Formatting options forwarded to the tsserver configure command.
enable_inlay_hints: boolGate for tsserver-backed inlay hints; allows users to disable the feature entirely.
Trait Implementations§
Source§impl Clone for PluginSettings
impl Clone for PluginSettings
Source§fn clone(&self) -> PluginSettings
fn clone(&self) -> PluginSettings
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 PluginSettings
impl Debug for PluginSettings
Source§impl Default for PluginSettings
impl Default for PluginSettings
Source§impl PartialEq for PluginSettings
impl PartialEq for PluginSettings
impl StructuralPartialEq for PluginSettings
Auto Trait Implementations§
impl Freeze for PluginSettings
impl RefUnwindSafe for PluginSettings
impl Send for PluginSettings
impl Sync for PluginSettings
impl Unpin for PluginSettings
impl UnwindSafe for PluginSettings
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