mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-08-02 23:02:15 +00:00
feat: add method to run workspace test
This commit is contained in:
parent
63e1c653d9
commit
cce066cd2a
1 changed files with 5 additions and 2 deletions
|
@ -99,12 +99,15 @@ fn main_loop(server: &mut TestingLS) -> Result<(), LSError> {
|
|||
}
|
||||
}
|
||||
"$/runFileTest" => {
|
||||
let uri = extract_uri(¶ms)?;
|
||||
let uri = extract_uri(params)?;
|
||||
server.check_file(&uri, false)?;
|
||||
}
|
||||
"$/runWorkspaceTest" => {
|
||||
server.diagnose_workspace()?;
|
||||
}
|
||||
"$/discoverFileTest" => {
|
||||
let id = value["id"].as_i64().unwrap();
|
||||
let uri = extract_uri(¶ms)?;
|
||||
let uri = extract_uri(params)?;
|
||||
let result = server.discover_file(&uri)?;
|
||||
send_stdout(&json!({
|
||||
"jsonrpc": "2.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue