Skip to content

How do I add an extension plugin? #12621

Closed Answered by SomeoneToIgnore
dominikwilkowski asked this question in Q&A
Discussion options

You must be logged in to vote

pub trait Extension: Send + Sync {
/// Returns a new instance of the extension.
fn new() -> Self
where
Self: Sized;
/// Returns the command used to start the language server for the specified
/// language.
fn language_server_command(
&mut self,
language_server_id: &LanguageServerId,
worktree: &Worktree,
) -> Result<Command>;
/// Returns the initialization options to pass to the specified language server.
fn language_server_initialization_options(
&mut self,
_language_server_id: &LanguageServerId,
_worktree: &Worktree,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SomeoneToIgnore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants