mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(lsp): add description in TaskDefinition (#29244)
This commit is contained in:
parent
1b36304381
commit
2f876b52d1
3 changed files with 5 additions and 0 deletions
|
@ -4755,6 +4755,7 @@ impl Inner {
|
|||
command: def.command.clone(),
|
||||
source_uri: url_to_uri(&config_file.specifier)
|
||||
.map_err(|_| LspError::internal_error())?,
|
||||
description: def.description.clone(),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -4767,6 +4768,7 @@ impl Inner {
|
|||
command: Some(command.clone()),
|
||||
source_uri: url_to_uri(&package_json.specifier())
|
||||
.map_err(|_| LspError::internal_error())?,
|
||||
description: None,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ pub const LATEST_DIAGNOSTIC_BATCH_INDEX: &str =
|
|||
pub struct TaskDefinition {
|
||||
pub name: String,
|
||||
pub command: Option<String>,
|
||||
pub description: Option<String>,
|
||||
pub source_uri: lsp::Uri,
|
||||
}
|
||||
|
||||
|
|
|
@ -1295,11 +1295,13 @@ fn lsp_deno_task() {
|
|||
{
|
||||
"name": "build",
|
||||
"command": "deno test",
|
||||
"description": null,
|
||||
"sourceUri": url_to_uri(&temp_dir.url().join("deno.jsonc").unwrap()).unwrap(),
|
||||
},
|
||||
{
|
||||
"name": "serve",
|
||||
"command": "deno run -RN server.ts",
|
||||
"description": "Start the dev server",
|
||||
"sourceUri": url_to_uri(&temp_dir.url().join("deno.jsonc").unwrap()).unwrap(),
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue