pub struct SemanticFeatures { /* private fields */ }Expand description
Semantic feature forwarder and merger
Implementations§
Source§impl SemanticFeatures
impl SemanticFeatures
Sourcepub fn new(
connection: Arc<LspConnection>,
completion_mapper: CompletionMapper,
diagnostics_mapper: DiagnosticsMapper,
hover_mapper: HoverMapper,
merge_config: MergeConfig,
timeout: Duration,
) -> Self
pub fn new( connection: Arc<LspConnection>, completion_mapper: CompletionMapper, diagnostics_mapper: DiagnosticsMapper, hover_mapper: HoverMapper, merge_config: MergeConfig, timeout: Duration, ) -> Self
Create a new semantic features handler
Sourcepub async fn forward_completion(
&self,
uri: &str,
position: Position,
_context: &CompletionContext,
) -> Result<Option<Vec<CompletionItem>>>
pub async fn forward_completion( &self, uri: &str, position: Position, _context: &CompletionContext, ) -> Result<Option<Vec<CompletionItem>>>
Sourcepub async fn forward_diagnostics(
&self,
_uri: &str,
) -> Result<Option<Vec<Diagnostic>>>
pub async fn forward_diagnostics( &self, _uri: &str, ) -> Result<Option<Vec<Diagnostic>>>
Sourcepub async fn forward_definition(
&self,
uri: &str,
position: Position,
) -> Result<Option<Vec<(String, Range)>>>
pub async fn forward_definition( &self, uri: &str, position: Position, ) -> Result<Option<Vec<(String, Range)>>>
Auto Trait Implementations§
impl Freeze for SemanticFeatures
impl !RefUnwindSafe for SemanticFeatures
impl Send for SemanticFeatures
impl Sync for SemanticFeatures
impl Unpin for SemanticFeatures
impl !UnwindSafe for SemanticFeatures
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