Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jun 27, 2024
1 parent 7384019 commit 91b87fc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 48 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "kcl-language-server"
description = "A language server for KCL."
authors = ["KittyCAD Inc <[email protected]>"]
version = "0.1.39"
version = "0.1.40"
edition = "2021"
license = "MIT"

Expand All @@ -16,7 +16,7 @@ path = "src/main.rs"
anyhow = "1.0.86"
clap = { version = "4.5.7", features = ["cargo", "derive", "env", "unicode"] }
dashmap = "6.0.1"
kcl-lib = { version = "0.1.67", default-features = false, features = ["cli", "engine", "disable-println"] }
kcl-lib = { version = "0.1.68", default-features = false, features = ["cli", "engine", "disable-println"] }
#kcl-lib = { path = "../modeling-app/src/wasm-lib/kcl", default-features = false, features = ["cli", "engine", "disable-println"] }
kittycad = "0.3.6"
lazy_static = "1.5.0"
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,11 @@ async fn run_cmd(opts: &Opts) -> Result<()> {
let stdlib_completions = kcl_lib::lsp::kcl::get_completions_from_stdlib(&stdlib)?;
let stdlib_signatures = kcl_lib::lsp::kcl::get_signatures_from_stdlib(&stdlib)?;
let fs = Arc::new(kcl_lib::fs::FileManager::new());
// We can unwrap here because we know the tokeniser is valid, since
// we have a test for it.
let token_types = kcl_lib::token::TokenType::all_semantic_token_types().unwrap();

let (service, socket) = LspService::new(|client| kcl_lib::lsp::kcl::Backend {
client,
stdlib_completions,
stdlib_signatures,
token_types,
fs,
token_map: Default::default(),
ast_map: Default::default(),
Expand All @@ -158,7 +154,6 @@ async fn run_cmd(opts: &Opts) -> Result<()> {
workspace_folders: Default::default(),
can_send_telemetry: false,
zoo_client: kittycad::Client::new(""),
current_handle: Default::default(),
can_execute: Default::default(),
executor_ctx: Default::default(),
is_initialized: Default::default(),
Expand Down

0 comments on commit 91b87fc

Please sign in to comment.