#![allow(clippy::collapsible_if, dead_code)]
rust_i18n::i18n!("locales", fallback = "en");
pub(crate) mod backend;
pub(crate) mod code_actions;
pub(crate) mod completion_provider;
pub(crate) mod diagnostic_mapper;
pub(crate) mod hover_provider;
pub(crate) mod locale;
pub(crate) mod position;
pub(crate) 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(())
}
#[cfg(test)]
mod testability_tests;