pub struct TypeScriptCodeActionAdapter { /* private fields */ }Expand description
Adapter for TypeScript code actions provider
Implementations§
Source§impl TypeScriptCodeActionAdapter
impl TypeScriptCodeActionAdapter
Sourcepub fn with_config(config: LanguageConfig) -> Self
pub fn with_config(config: LanguageConfig) -> Self
Create with configuration
Trait Implementations§
Source§impl CodeActionProvider for TypeScriptCodeActionAdapter
impl CodeActionProvider for TypeScriptCodeActionAdapter
Source§fn suggest_actions(
&self,
_diagnostic: &Diagnostic,
_code: &str,
) -> ProviderResult<Vec<String>>
fn suggest_actions( &self, _diagnostic: &Diagnostic, _code: &str, ) -> ProviderResult<Vec<String>>
Suggest code actions for a diagnostic
Source§fn apply_action(&self, code: &str, _action: &str) -> ProviderResult<String>
fn apply_action(&self, code: &str, _action: &str) -> ProviderResult<String>
Apply a code action to code
Source§fn config(&self) -> Option<&LanguageConfig>
fn config(&self) -> Option<&LanguageConfig>
Get the configuration for this provider
Auto Trait Implementations§
impl Freeze for TypeScriptCodeActionAdapter
impl RefUnwindSafe for TypeScriptCodeActionAdapter
impl Send for TypeScriptCodeActionAdapter
impl Sync for TypeScriptCodeActionAdapter
impl Unpin for TypeScriptCodeActionAdapter
impl UnwindSafe for TypeScriptCodeActionAdapter
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