pub struct WorkspaceManager { /* private fields */ }Implementations§
Source§impl WorkspaceManager
impl WorkspaceManager
pub fn new(documents: Arc<RwLock<HashMap<Url, Document>>>) -> Self
pub async fn set_workspace_folders(&self, folders: Vec<Url>)
pub async fn clear_document_caches(&self, uri: &Url)
pub async fn resolve_catalog( &self, doc_uri: &Url, package_name: &str, catalog: &str, ) -> Option<CatalogResult>
pub async fn resolve_workspace_package( &self, doc_uri: &Url, package_name: &str, ) -> Option<WorkspacePackageResult>
pub async fn resolve_version( &self, doc_uri: &Url, package_name: &str, ) -> Option<PackageOutdatedInfo>
pub async fn find_workspace(&self, path: &Path) -> Option<WorkspaceInfo>
Trait Implementations§
Source§impl Default for WorkspaceManager
impl Default for WorkspaceManager
Source§fn default() -> WorkspaceManager
fn default() -> WorkspaceManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WorkspaceManager
impl !RefUnwindSafe for WorkspaceManager
impl Send for WorkspaceManager
impl Sync for WorkspaceManager
impl Unpin for WorkspaceManager
impl UnsafeUnpin for WorkspaceManager
impl !UnwindSafe for WorkspaceManager
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