Skip to content

Commit

Permalink
release codebook-lsp 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Jan 20, 2025
1 parent bcacf4a commit c1e70e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codebook-lsp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codebook-lsp"
version = "0.1.8"
version = "0.1.9"
edition = "2021"

[dependencies]
Expand Down
14 changes: 1 addition & 13 deletions codebook-lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use codebook::dictionary::{SpellCheckResult, TextRange};
use tower_lsp::jsonrpc::Result as RpcResult;
use tower_lsp::lsp_types::*;
use tower_lsp::{Client, LanguageServer};

//Hoverz
use codebook::Codebook;
use codebook_config::CodebookConfig;
use log::info;
Expand All @@ -31,9 +31,6 @@ impl LanguageServer for Backend {
TextDocumentSyncKind::FULL,
)),
code_action_provider: Some(CodeActionProviderCapability::Simple(true)),
// hover_provider: Some(HoverProviderCapability::Simple(true)),
// inlay_hint_provider: Some(OneOf::Left(true)),
// code_action_provider: Some(CodeActionProviderCapability::Simple(true)),
..ServerCapabilities::default()
},
server_info: Some(ServerInfo {
Expand Down Expand Up @@ -92,15 +89,6 @@ impl LanguageServer for Backend {
});
Ok(Some(actions))
}

// async fn hover(&self, params: HoverParams) -> RpcResult<Option<Hover>> {
// let contents = HoverContents::Scalar(MarkedString::String("Hello, world!".to_string()));
// Ok(Some(Hover {
// contents,
// range: None,
// }))
// }
//
}

impl Backend {
Expand Down

0 comments on commit c1e70e0

Please sign in to comment.