#![allow(clippy::collapsible_if, dead_code)]
rust_i18n::i18n!("../../locales", fallback = "en");
mod backend;
mod code_actions;
mod completion_provider;
mod diagnostic_mapper;
mod hover_provider;
mod locale;
mod position;
mod vscode_config;
pub use backend::Backend;
pub use vscode_config::{VsCodeConfig, VsCodeRules, VsCodeSpecs, VsCodeVersions};
use tower_lsp::{LspService, Server};
pub async fn start_server() -> anyhow::Result<()> {
locale::init_from_env();
let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();
let (service, socket) = LspService::new(Backend::new);
Server::new(stdin, stdout, socket).serve(service).await;
Ok(())
}