pub struct JsPlugin;Expand description
JavaScript/TypeScript language plugin
Trait Implementations§
Source§impl LanguagePlugin for JsPlugin
impl LanguagePlugin for JsPlugin
Source§fn extensions(&self) -> &[&str]
fn extensions(&self) -> &[&str]
File extensions this plugin handles
Source§fn key_files(&self) -> &[&str]
fn key_files(&self) -> &[&str]
Key files that identify this language (e.g., Cargo.toml, pyproject.toml)
Source§fn required_binaries(&self) -> Vec<(&str, &str, &str)>
fn required_binaries(&self) -> Vec<(&str, &str, &str)>
Required host binaries for this plugin, grouped by role. Read more
Source§fn get_lsp_config(&self) -> LspConfig
fn get_lsp_config(&self) -> LspConfig
Get the LSP configuration for this language
Source§fn get_init_action(&self, opts: &InitOptions) -> ProjectAction
fn get_init_action(&self, opts: &InitOptions) -> ProjectAction
Get the action to initialize a new project (greenfield)
Source§fn check_tooling_action(&self, path: &Path) -> ProjectAction
fn check_tooling_action(&self, path: &Path) -> ProjectAction
Check if an existing project needs tooling sync (e.g., uv sync, cargo fetch)
Source§fn init_command(&self, opts: &InitOptions) -> String
fn init_command(&self, opts: &InitOptions) -> String
Get the command to initialize a new project
DEPRECATED: Use get_init_action instead
Source§fn test_command(&self) -> String
fn test_command(&self) -> String
Get the command to run tests
Source§fn run_command(&self) -> String
fn run_command(&self) -> String
Get the command to run the project (for verification)
Source§fn syntax_check_command(&self) -> Option<String>
fn syntax_check_command(&self) -> Option<String>
Source§fn build_command(&self) -> Option<String>
fn build_command(&self) -> Option<String>
Source§fn lint_command(&self) -> Option<String>
fn lint_command(&self) -> Option<String>
Get the lint command (e.g.,
cargo clippy -- -D warnings) Read moreSource§fn file_ownership_patterns(&self) -> &[&str]
fn file_ownership_patterns(&self) -> &[&str]
File glob patterns this plugin owns (e.g.,
["*.rs", "Cargo.toml"]) Read moreSource§fn host_tool_available(&self) -> bool
fn host_tool_available(&self) -> bool
Check if the host has the required build tools available Read more
Source§fn verifier_profile(&self) -> VerifierProfile
fn verifier_profile(&self) -> VerifierProfile
Build a complete verifier profile by probing each capability. Read more
Source§fn detect(&self, path: &Path) -> bool
fn detect(&self, path: &Path) -> bool
Detect if this plugin should handle the given project directory
Source§fn run_command_for_dir(&self, _path: &Path) -> String
fn run_command_for_dir(&self, _path: &Path) -> String
Get the command to run the project in a specific directory. Read more
Source§fn owns_file(&self, path: &str) -> bool
fn owns_file(&self, path: &str) -> bool
PSP-5 Phase 2: Check if a file path belongs to this plugin’s ownership domain Read more
Source§fn lsp_fallback(&self) -> Option<LspConfig>
fn lsp_fallback(&self) -> Option<LspConfig>
Get fallback LSP config when primary is unavailable
Auto Trait Implementations§
impl Freeze for JsPlugin
impl RefUnwindSafe for JsPlugin
impl Send for JsPlugin
impl Sync for JsPlugin
impl Unpin for JsPlugin
impl UnsafeUnpin for JsPlugin
impl UnwindSafe for JsPlugin
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