mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
477273085f
Removes the previously added internal `--parent-pid` flag. This solution is better.
38 lines
759 B
Rust
38 lines
759 B
Rust
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
|
|
use deno_core::error::AnyError;
|
|
use lspower::LspService;
|
|
use lspower::Server;
|
|
|
|
mod analysis;
|
|
mod capabilities;
|
|
mod code_lens;
|
|
mod completions;
|
|
mod config;
|
|
mod diagnostics;
|
|
mod documents;
|
|
pub(crate) mod language_server;
|
|
mod lsp_custom;
|
|
mod parent_process_checker;
|
|
mod path_to_regex;
|
|
mod performance;
|
|
mod registries;
|
|
mod semantic_tokens;
|
|
mod sources;
|
|
mod text;
|
|
mod tsc;
|
|
mod urls;
|
|
|
|
pub async fn start() -> Result<(), AnyError> {
|
|
let stdin = tokio::io::stdin();
|
|
let stdout = tokio::io::stdout();
|
|
|
|
let (service, messages) =
|
|
LspService::new(language_server::LanguageServer::new);
|
|
Server::new(stdin, stdout)
|
|
.interleave(messages)
|
|
.serve(service)
|
|
.await;
|
|
|
|
Ok(())
|
|
}
|