Struct testing_language_server::server::TestingLS
source · pub struct TestingLS {
pub initialize_params: InitializeParams,
pub options: InitializedOptions,
pub workspace_root_cache: HashMap<String, (AdapterConfiguration, DetectWorkspaceRootResult)>,
}
Fields§
§initialize_params: InitializeParams
§options: InitializedOptions
§workspace_root_cache: HashMap<String, (AdapterConfiguration, DetectWorkspaceRootResult)>
Implementations§
source§impl TestingLS
impl TestingLS
pub fn new() -> Self
pub fn main_loop(&mut self) -> Result<(), LSError>
pub fn handle_initialization_options( &self, options: Option<&Value> ) -> Result<InitializedOptions, LSError>
pub fn initialize(&self, id: i64) -> Result<impl Serialize, LSError>
pub fn refresh_workspace_root_cache(&mut self) -> Result<(), LSError>
pub fn check_workspace(&mut self) -> Result<impl Serialize, LSError>
pub fn check_file( &mut self, path: &str, refresh_needed: bool ) -> Result<impl Serialize, LSError>
pub fn send_diagnostics( &self, uri: Url, diagnostics: Vec<Diagnostic> ) -> Result<(), LSError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestingLS
impl RefUnwindSafe for TestingLS
impl Send for TestingLS
impl Sync for TestingLS
impl Unpin for TestingLS
impl UnwindSafe for TestingLS
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