Add LSP request and VSCode command
This commit is contained in:
@@ -177,6 +177,26 @@ pub struct CargoRunnable {
|
||||
pub expect_test: Option<bool>,
|
||||
}
|
||||
|
||||
pub enum RelatedTests {}
|
||||
|
||||
impl Request for RelatedTests {
|
||||
type Params = RelatedTestsParams;
|
||||
type Result = Vec<TestInfo>;
|
||||
const METHOD: &'static str = "rust-analyzer/relatedTests";
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct RelatedTestsParams {
|
||||
#[serde(flatten)]
|
||||
pub text_document_position: lsp_types::TextDocumentPositionParams,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct TestInfo {
|
||||
pub runnable: Runnable,
|
||||
}
|
||||
|
||||
pub enum InlayHints {}
|
||||
|
||||
impl Request for InlayHints {
|
||||
|
||||
Reference in New Issue
Block a user