remove redudant method
This commit is contained in:
parent
e047398756
commit
ae6b79a398
1 changed files with 0 additions and 14 deletions
|
@ -12140,20 +12140,6 @@ impl LspStore {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn take_text_document_sync_options(
|
|
||||||
capabilities: &mut lsp::ServerCapabilities,
|
|
||||||
) -> lsp::TextDocumentSyncOptions {
|
|
||||||
match capabilities.text_document_sync.take() {
|
|
||||||
Some(lsp::TextDocumentSyncCapability::Options(sync_options)) => sync_options,
|
|
||||||
Some(lsp::TextDocumentSyncCapability::Kind(sync_kind)) => {
|
|
||||||
let mut sync_options = lsp::TextDocumentSyncOptions::default();
|
|
||||||
sync_options.change = Some(sync_kind);
|
|
||||||
sync_options
|
|
||||||
}
|
|
||||||
None => lsp::TextDocumentSyncOptions::default(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
pub fn forget_code_lens_task(&mut self, buffer_id: BufferId) -> Option<CodeLensTask> {
|
pub fn forget_code_lens_task(&mut self, buffer_id: BufferId) -> Option<CodeLensTask> {
|
||||||
let data = self.lsp_code_lens.get_mut(&buffer_id)?;
|
let data = self.lsp_code_lens.get_mut(&buffer_id)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue