@@ -17,6 +17,7 @@ class SettingsModel {
17
17
this .historyRetentionPeriod = HistoryRetentionPeriod .oneWeek,
18
18
this .workspaceFolderPath,
19
19
this .isSSLDisabled = false ,
20
+ this .isDashBotEnabled = true ,
20
21
});
21
22
22
23
final bool isDark;
@@ -31,6 +32,7 @@ class SettingsModel {
31
32
final HistoryRetentionPeriod historyRetentionPeriod;
32
33
final String ? workspaceFolderPath;
33
34
final bool isSSLDisabled;
35
+ final bool isDashBotEnabled;
34
36
35
37
SettingsModel copyWith ({
36
38
bool ? isDark,
@@ -45,6 +47,7 @@ class SettingsModel {
45
47
HistoryRetentionPeriod ? historyRetentionPeriod,
46
48
String ? workspaceFolderPath,
47
49
bool ? isSSLDisabled,
50
+ bool ? isDashBotEnabled,
48
51
}) {
49
52
return SettingsModel (
50
53
isDark: isDark ?? this .isDark,
@@ -61,6 +64,7 @@ class SettingsModel {
61
64
historyRetentionPeriod ?? this .historyRetentionPeriod,
62
65
workspaceFolderPath: workspaceFolderPath ?? this .workspaceFolderPath,
63
66
isSSLDisabled: isSSLDisabled ?? this .isSSLDisabled,
67
+ isDashBotEnabled: isDashBotEnabled ?? this .isDashBotEnabled,
64
68
);
65
69
}
66
70
@@ -80,6 +84,7 @@ class SettingsModel {
80
84
historyRetentionPeriod: historyRetentionPeriod,
81
85
workspaceFolderPath: workspaceFolderPath,
82
86
isSSLDisabled: isSSLDisabled,
87
+ isDashBotEnabled: isDashBotEnabled,
83
88
);
84
89
}
85
90
@@ -134,6 +139,7 @@ class SettingsModel {
134
139
}
135
140
final workspaceFolderPath = data["workspaceFolderPath" ] as String ? ;
136
141
final isSSLDisabled = data["isSSLDisabled" ] as bool ? ;
142
+ final isDashBotEnabled = data["isDashBotEnabled" ] as bool ? ;
137
143
138
144
const sm = SettingsModel ();
139
145
@@ -151,6 +157,7 @@ class SettingsModel {
151
157
historyRetentionPeriod ?? HistoryRetentionPeriod .oneWeek,
152
158
workspaceFolderPath: workspaceFolderPath,
153
159
isSSLDisabled: isSSLDisabled,
160
+ isDashBotEnabled: isDashBotEnabled,
154
161
);
155
162
}
156
163
@@ -170,6 +177,7 @@ class SettingsModel {
170
177
"historyRetentionPeriod" : historyRetentionPeriod.name,
171
178
"workspaceFolderPath" : workspaceFolderPath,
172
179
"isSSLDisabled" : isSSLDisabled,
180
+ "isDashBotEnabled" : isDashBotEnabled,
173
181
};
174
182
}
175
183
@@ -194,7 +202,8 @@ class SettingsModel {
194
202
other.activeEnvironmentId == activeEnvironmentId &&
195
203
other.historyRetentionPeriod == historyRetentionPeriod &&
196
204
other.workspaceFolderPath == workspaceFolderPath &&
197
- other.isSSLDisabled == isSSLDisabled;
205
+ other.isSSLDisabled == isSSLDisabled &&
206
+ other.isDashBotEnabled == isDashBotEnabled;
198
207
}
199
208
200
209
@override
@@ -213,6 +222,7 @@ class SettingsModel {
213
222
historyRetentionPeriod,
214
223
workspaceFolderPath,
215
224
isSSLDisabled,
225
+ isDashBotEnabled,
216
226
);
217
227
}
218
228
}
0 commit comments