Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/completion.rs')
| -rw-r--r-- | helix-core/src/completion.rs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/helix-core/src/completion.rs b/helix-core/src/completion.rs index 11b49cfc..0bd111eb 100644 --- a/helix-core/src/completion.rs +++ b/helix-core/src/completion.rs @@ -1,6 +1,6 @@ use std::borrow::Cow; -use crate::{diagnostic::LanguageServerId, Transaction}; +use crate::Transaction; #[derive(Debug, PartialEq, Clone)] pub struct CompletionItem { @@ -8,19 +8,5 @@ pub struct CompletionItem { pub label: Cow<'static, str>, pub kind: Cow<'static, str>, /// Containing Markdown - pub documentation: Option<String>, - pub provider: CompletionProvider, -} - -#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] -pub enum CompletionProvider { - Lsp(LanguageServerId), - Path, - Word, -} - -impl From<LanguageServerId> for CompletionProvider { - fn from(id: LanguageServerId) -> Self { - CompletionProvider::Lsp(id) - } + pub documentation: String, } |