pub struct RefactoringHandler { /* private fields */ }Expand description
Refactoring handler for LSP
Implementations§
Source§impl RefactoringHandler
impl RefactoringHandler
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable refactoring
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if refactoring is enabled
Sourcepub fn engine(&self) -> Arc<RefactoringEngine>
pub fn engine(&self) -> Arc<RefactoringEngine>
Get the refactoring engine
Sourcepub fn impact_analyzer(&self) -> Arc<ImpactAnalyzer>
pub fn impact_analyzer(&self) -> Arc<ImpactAnalyzer>
Get the impact analyzer
Sourcepub fn config_manager(&self) -> Arc<ConfigManager>
pub fn config_manager(&self) -> Arc<ConfigManager>
Get the configuration manager
Sourcepub async fn handle_refactoring_request(
&self,
params: Value,
) -> Result<Value, String>
pub async fn handle_refactoring_request( &self, params: Value, ) -> Result<Value, String>
Handle refactoring request
Sourcepub fn available_refactoring_types(&self) -> Vec<&'static str>
pub fn available_refactoring_types(&self) -> Vec<&'static str>
Get available refactoring types
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefactoringHandler
impl !RefUnwindSafe for RefactoringHandler
impl Send for RefactoringHandler
impl Sync for RefactoringHandler
impl Unpin for RefactoringHandler
impl !UnwindSafe for RefactoringHandler
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