-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_history.patch
115 lines (113 loc) · 3.21 KB
/
local_history.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Index: crates/coordinator/descriptors/src/mutators.rs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/crates/coordinator/descriptors/src/mutators.rs b/crates/coordinator/descriptors/src/mutators.rs
--- a/crates/coordinator/descriptors/src/mutators.rs
+++ b/crates/coordinator/descriptors/src/mutators.rs (date 1696879307527)
@@ -21,12 +21,14 @@
type_name: String,
base_type: BaseType,
description: String,
+ label: String,
is_dependent: bool,
) -> Result<TypeHeader, DescriptorsError> {
let header = TypeHeader::new(
type_name,
base_type,
description,
+ label,
SemanticVersion::default(),
is_dependent,
);
@@ -47,9 +49,10 @@
pub fn new_holon_descriptor(
type_name: String,
description: String,
+ label: String,
is_dependent: bool,
) -> Result<HolonDescriptor, DescriptorsError> {
- let header = new_type_header(type_name, BaseType::Holon, description, is_dependent)?;
+ let header = new_type_header(type_name, BaseType::Holon, description, label, is_dependent)?;
let descriptor = HolonDescriptor::new(header, PropertyDescriptorMap::new(BTreeMap::new()));
@@ -61,6 +64,7 @@
fn new_property_descriptor(
type_name: String,
description: String,
+ label: String,
base_type: BaseType,
is_dependent: bool,
details: PropertyDescriptorDetails,
@@ -70,6 +74,7 @@
type_name.to_string(),
base_type,
description.to_string(),
+ label,
is_dependent,
)?;
Ok(PropertyDescriptor::new(
@@ -85,6 +90,7 @@
pub fn new_composite_descriptor(
type_name: String,
description: String,
+ label: String,
is_dependent: bool,
properties: PropertyDescriptorMap,
) -> Result<PropertyDescriptor, DescriptorsError> {
@@ -93,6 +99,7 @@
let desc = new_property_descriptor(
type_name,
description,
+ label,
BaseType::Composite,
is_dependent,
details,
@@ -103,6 +110,7 @@
pub fn new_string_descriptor(
type_name: String,
description: String,
+ label: String,
is_dependent: bool,
min_length: u32,
max_length: u32,
@@ -111,6 +119,7 @@
let desc = new_property_descriptor(
type_name,
description,
+ label,
BaseType::String,
is_dependent,
details,
@@ -121,6 +130,7 @@
pub fn new_integer_descriptor(
type_name: String,
description: String,
+ label: String,
is_dependent: bool,
format: IntegerFormat,
min_value: i64,
@@ -131,6 +141,7 @@
let desc = new_property_descriptor(
type_name,
description,
+ label,
BaseType::Integer,
is_dependent,
details,
@@ -141,6 +152,7 @@
pub fn new_boolean_descriptor(
type_name: String,
description: String,
+ label: String,
is_dependent: bool,
is_fuzzy: bool,
) -> Result<PropertyDescriptor, DescriptorsError> {
@@ -148,6 +160,7 @@
let desc = new_property_descriptor(
type_name,
description,
+ label,
BaseType::Boolean,
is_dependent,
details,