@@ -79,6 +79,12 @@ class SettingsModel {
79
79
historyRetentionPeriod ?? this .historyRetentionPeriod,
80
80
workspaceFolderPath: workspaceFolderPath ?? this .workspaceFolderPath,
81
81
isSSLDisabled: isSSLDisabled ?? this .isSSLDisabled,
82
+ // Proxy settings
83
+ isProxyEnabled: isProxyEnabled ?? this .isProxyEnabled,
84
+ proxyHost: proxyHost ?? this .proxyHost,
85
+ proxyPort: proxyPort ?? this .proxyPort,
86
+ proxyUsername: proxyUsername ?? this .proxyUsername,
87
+ proxyPassword: proxyPassword ?? this .proxyPassword,
82
88
);
83
89
}
84
90
@@ -152,6 +158,11 @@ class SettingsModel {
152
158
}
153
159
final workspaceFolderPath = data["workspaceFolderPath" ] as String ? ;
154
160
final isSSLDisabled = data["isSSLDisabled" ] as bool ? ;
161
+ final isProxyEnabled = data["isProxyEnabled" ] as bool ? ;
162
+ final proxyHost = data["proxyHost" ] as String ? ;
163
+ final proxyPort = data["proxyPort" ] as String ? ;
164
+ final proxyUsername = data["proxyUsername" ] as String ? ;
165
+ final proxyPassword = data["proxyPassword" ] as String ? ;
155
166
156
167
const sm = SettingsModel ();
157
168
@@ -169,6 +180,11 @@ class SettingsModel {
169
180
historyRetentionPeriod ?? HistoryRetentionPeriod .oneWeek,
170
181
workspaceFolderPath: workspaceFolderPath,
171
182
isSSLDisabled: isSSLDisabled,
183
+ isProxyEnabled: isProxyEnabled,
184
+ proxyHost: proxyHost,
185
+ proxyPort: proxyPort,
186
+ proxyUsername: proxyUsername,
187
+ proxyPassword: proxyPassword,
172
188
);
173
189
}
174
190
@@ -188,6 +204,12 @@ class SettingsModel {
188
204
"historyRetentionPeriod" : historyRetentionPeriod.name,
189
205
"workspaceFolderPath" : workspaceFolderPath,
190
206
"isSSLDisabled" : isSSLDisabled,
207
+ // Proxy settings
208
+ "isProxyEnabled" : isProxyEnabled,
209
+ "proxyHost" : proxyHost,
210
+ "proxyPort" : proxyPort,
211
+ "proxyUsername" : proxyUsername,
212
+ "proxyPassword" : proxyPassword,
191
213
};
192
214
}
193
215
@@ -212,7 +234,12 @@ class SettingsModel {
212
234
other.activeEnvironmentId == activeEnvironmentId &&
213
235
other.historyRetentionPeriod == historyRetentionPeriod &&
214
236
other.workspaceFolderPath == workspaceFolderPath &&
215
- other.isSSLDisabled == isSSLDisabled;
237
+ other.isSSLDisabled == isSSLDisabled &&
238
+ other.isProxyEnabled == isProxyEnabled &&
239
+ other.proxyHost == proxyHost &&
240
+ other.proxyPort == proxyPort &&
241
+ other.proxyUsername == proxyUsername &&
242
+ other.proxyPassword == proxyPassword;
216
243
}
217
244
218
245
@override
@@ -231,6 +258,11 @@ class SettingsModel {
231
258
historyRetentionPeriod,
232
259
workspaceFolderPath,
233
260
isSSLDisabled,
261
+ isProxyEnabled,
262
+ proxyHost,
263
+ proxyPort,
264
+ proxyUsername,
265
+ proxyPassword,
234
266
);
235
267
}
236
268
}
0 commit comments