Skip to content

Commit

Permalink
update after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekmalneedi committed Dec 26, 2024
1 parent fa67aa8 commit 86d6e18
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 139 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ regex = "1.9.1"
structopt = "0.3.26"
strum = "0.26.1"
strum_macros = "0.26.1"
tree-sitter = "0.20.0"
tree-sitter = "0.24.5"
tree-sitter-verilog = { git = "https://github.com/tree-sitter/tree-sitter-verilog" }
streaming-iterator = "0.1.9"

[dev-dependencies]
tempdir = "0.3.7"
Expand Down
62 changes: 33 additions & 29 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
#[allow(unused)]
mod symbol;

use log::info;
use std::sync::Arc;
use structopt::StructOpt;
use tower_lsp::{LspService, Server};
// use log::info;
// use std::sync::Arc;
// use structopt::StructOpt;
// use tower_lsp::{LspService, Server};
//
// mod completion;
// mod definition;
// mod diagnostics;
// mod format;
// mod server;
// mod sources;
// #[cfg(test)]
// mod support;
// use server::Backend;
//
// #[derive(StructOpt, Debug)]
// #[structopt(name = "veridian", about = "A SystemVerilog/Verilog Language Server")]
// struct Opt {}

mod completion;
mod definition;
mod diagnostics;
mod format;
mod server;
mod sources;
#[cfg(test)]
mod support;
use server::Backend;
// #[tokio::main]
// async fn main() {
// let _ = Opt::from_args();
// let log_handle = flexi_logger::Logger::with(flexi_logger::LogSpecification::info())
// .start()
// .unwrap();
// info!("starting veridian...");
//
// let stdin = tokio::io::stdin();
// let stdout = tokio::io::stdout();
//
// let (service, messages) = LspService::new(|client| Arc::new(Backend::new(client, log_handle)));
// Server::new(stdin, stdout, messages).serve(service).await;
// }

#[derive(StructOpt, Debug)]
#[structopt(name = "veridian", about = "A SystemVerilog/Verilog Language Server")]
struct Opt {}
fn main() {

#[tokio::main]
async fn main() {
let _ = Opt::from_args();
let log_handle = flexi_logger::Logger::with(flexi_logger::LogSpecification::info())
.start()
.unwrap();
info!("starting veridian...");

let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();

let (service, messages) = LspService::new(|client| Arc::new(Backend::new(client, log_handle)));
Server::new(stdin, stdout, messages).serve(service).await;
}
Loading

0 comments on commit 86d6e18

Please sign in to comment.