feat: add molc

* use molc for ELS tests
This commit is contained in:
Shunsuke Shibayama 2023-09-08 02:13:13 +09:00
parent 6ca5e07191
commit dcb42f68b9
30 changed files with 884 additions and 797 deletions

View file

@ -8,7 +8,7 @@ use erg_compiler::hir::Expr;
use lsp_types::{Command, ExecuteCommandParams, Location, Url};
use crate::_log;
use crate::server::{ELSResult, Server};
use crate::server::{ELSResult, RedirectableStdout, Server};
use crate::util::{self, NormalizedUrl};
impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
@ -16,11 +16,11 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
&mut self,
params: ExecuteCommandParams,
) -> ELSResult<Option<Value>> {
_log!("command requested: {}", params.command);
_log!(self, "command requested: {}", params.command);
#[allow(clippy::match_single_binding)]
match &params.command[..] {
other => {
_log!("unknown command {other}: {params:?}");
_log!(self, "unknown command {other}: {params:?}");
Ok(None)
}
}