pub struct DocumentManager { /* private fields */ }Expand description
Manages all open documents in the workspace
Implementations§
Source§impl DocumentManager
impl DocumentManager
Sourcepub fn get_module_cache(&self) -> Arc<ModuleCache>
pub fn get_module_cache(&self) -> Arc<ModuleCache>
Get the module cache
Sourcepub fn update(&self, uri: &Uri, version: i32, text: String)
pub fn update(&self, uri: &Uri, version: i32, text: String)
Update document content (full update)
Sourcepub fn update_cached_symbols(&self, uri: &Uri, symbols: Vec<SymbolInfo>)
pub fn update_cached_symbols(&self, uri: &Uri, symbols: Vec<SymbolInfo>)
Update cached symbols for a document
Sourcepub fn update_cached_types(&self, uri: &Uri, types: HashMap<String, String>)
pub fn update_cached_types(&self, uri: &Uri, types: HashMap<String, String>)
Update cached type info for a document
Sourcepub fn get_cached_symbols(&self, uri: &Uri) -> Vec<SymbolInfo>
pub fn get_cached_symbols(&self, uri: &Uri) -> Vec<SymbolInfo>
Get cached symbols for a document
Trait Implementations§
Source§impl Debug for DocumentManager
impl Debug for DocumentManager
Auto Trait Implementations§
impl Freeze for DocumentManager
impl !RefUnwindSafe for DocumentManager
impl Send for DocumentManager
impl Sync for DocumentManager
impl Unpin for DocumentManager
impl UnsafeUnpin for DocumentManager
impl !UnwindSafe for DocumentManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more