Skip to content

Commit cf594cc

Browse files
committed
Partial implementation of TestExplorerProvider
1 parent 3aab211 commit cf594cc

File tree

6 files changed

+366
-3717
lines changed

6 files changed

+366
-3717
lines changed

crates/rust-analyzer/src/lsp_ext.rs

+22
Original file line numberDiff line numberDiff line change
@@ -546,3 +546,25 @@ pub struct Append {
546546
pub target_id: usize,
547547
//TODO: ...
548548
}
549+
550+
pub enum RunTests {}
551+
552+
impl Request for AnalyzerStatus {
553+
type Params = RunTestsParams;
554+
type Result = ();
555+
556+
const METHOD: &'static str = "experimental/runTests";
557+
}
558+
559+
enum RunKind {
560+
Run,
561+
Debug,
562+
}
563+
564+
#[derive(Deserialize, Serialize, Debug)]
565+
#[serde(rename_all = "camelCase")]
566+
pub struct RunTestsParams {
567+
pub include: Vec<String>,
568+
pub exclude: Vec<String>,
569+
pub run_kind: RunKind,
570+
}

0 commit comments

Comments
 (0)