task: use full task label to distinguish a terminal (#10469)
Spotted by @SomeoneToIgnore, in #10468 I've used a shortened task label, which might lead to collisions. Release Notes: - N/A
This commit is contained in:
parent
298e9c9387
commit
a1cbc23fee
5 changed files with 12 additions and 5 deletions
|
@ -25,6 +25,8 @@ pub struct TaskId(pub String);
|
|||
pub struct SpawnInTerminal {
|
||||
/// Id of the task to use when determining task tab affinity.
|
||||
pub id: TaskId,
|
||||
/// Full unshortened form of `label` field.
|
||||
pub full_label: String,
|
||||
/// Human readable name of the terminal tab.
|
||||
pub label: String,
|
||||
/// Executable command to spawn.
|
||||
|
|
|
@ -115,10 +115,11 @@ impl TaskTemplate {
|
|||
Some(ResolvedTask {
|
||||
id: id.clone(),
|
||||
original_task: self.clone(),
|
||||
resolved_label: full_label,
|
||||
resolved_label: full_label.clone(),
|
||||
resolved: Some(SpawnInTerminal {
|
||||
id,
|
||||
cwd,
|
||||
full_label,
|
||||
label: shortened_label,
|
||||
command,
|
||||
args,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue