mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-03 05:54:33 +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
|
@ -15,7 +15,7 @@ use lsp_types::{
|
|||
SemanticToken, SemanticTokenType, SemanticTokens, SemanticTokensParams, SemanticTokensResult,
|
||||
};
|
||||
|
||||
use crate::server::{send_log, ELSResult, Server};
|
||||
use crate::server::{ELSResult, RedirectableStdout, Server};
|
||||
use crate::util::{self, NormalizedUrl};
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -288,7 +288,7 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
|
|||
&mut self,
|
||||
params: SemanticTokensParams,
|
||||
) -> ELSResult<Option<SemanticTokensResult>> {
|
||||
send_log(format!("full semantic tokens request: {params:?}"))?;
|
||||
self.send_log(format!("full semantic tokens request: {params:?}"))?;
|
||||
let uri = NormalizedUrl::new(params.text_document.uri);
|
||||
let path = util::uri_to_path(&uri);
|
||||
let src = self.file_cache.get_entire_code(&uri)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue