-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa67aa8
commit 86d6e18
Showing
3 changed files
with
148 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.