pub struct GoplsConfig;Trait Implementations§
Source§impl LspServerConfig for GoplsConfig
impl LspServerConfig for GoplsConfig
Source§fn server_name(&self) -> &'static str
fn server_name(&self) -> &'static str
Human-readable name for logging.
Source§fn binary_name(&self) -> &'static str
fn binary_name(&self) -> &'static str
The binary name to look for on PATH (e.g. “rust-analyzer”, “pyright-langserver”).
Source§fn language_id(&self) -> &'static str
fn language_id(&self) -> &'static str
The LSP language ID for
textDocument/didOpen (e.g. “rust”, “python”).Source§fn cached_binary_name(&self) -> String
fn cached_binary_name(&self) -> String
Cache directory relative filename for the downloaded binary (if applicable).
Source§fn download_url(&self) -> Option<String>
fn download_url(&self) -> Option<String>
URL to download the binary from (if PATH lookup fails and download feature enabled).
Source§fn spawn_args(&self) -> Vec<String>
fn spawn_args(&self) -> Vec<String>
Arguments to pass to the server binary when spawning.
Source§fn post_init_delay_secs(&self) -> u64
fn post_init_delay_secs(&self) -> u64
Seconds to sleep after initialization to let the server index.
Source§fn install_command(&self) -> Option<(String, Vec<String>)>
fn install_command(&self) -> Option<(String, Vec<String>)>
Optional command to install the server when not found on PATH or cache.
Returns
(command, args) — e.g. ("go", vec!["install", "golang.org/x/tools/gopls@v0.21.1"]).
The locate_or_download logic will run this and then re-check PATH.Source§fn init_params_extra(&self, _root_uri: &str) -> Value
fn init_params_extra(&self, _root_uri: &str) -> Value
Extra initialization parameters to include in the LSP
initialize request.Source§fn setup_hints(&self) -> String
fn setup_hints(&self) -> String
Human-readable setup/installation hints for this LSP server.
Returns a description of how to install the server, for the agent to act on.
Auto Trait Implementations§
impl Freeze for GoplsConfig
impl RefUnwindSafe for GoplsConfig
impl Send for GoplsConfig
impl Sync for GoplsConfig
impl Unpin for GoplsConfig
impl UnsafeUnpin for GoplsConfig
impl UnwindSafe for GoplsConfig
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