mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
feat: add molc
* use molc for ELS tests
This commit is contained in:
parent
6ca5e07191
commit
dcb42f68b9
30 changed files with 884 additions and 797 deletions
|
@ -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 ¶ms.command[..] {
|
||||
other => {
|
||||
_log!("unknown command {other}: {params:?}");
|
||||
_log!(self, "unknown command {other}: {params:?}");
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue