@@ -18,10 +18,6 @@ class SettingsModel {
18
18
this .workspaceFolderPath,
19
19
this .isSSLDisabled = false ,
20
20
this .isProxyEnabled = false ,
21
- this .proxyHost = '' ,
22
- this .proxyPort = '' ,
23
- this .proxyUsername,
24
- this .proxyPassword,
25
21
});
26
22
27
23
final bool isDark;
@@ -39,10 +35,6 @@ class SettingsModel {
39
35
40
36
// Proxy settings
41
37
final bool isProxyEnabled;
42
- final String proxyHost;
43
- final String proxyPort;
44
- final String ? proxyUsername;
45
- final String ? proxyPassword;
46
38
47
39
SettingsModel copyWith ({
48
40
bool ? isDark,
@@ -57,34 +49,24 @@ class SettingsModel {
57
49
HistoryRetentionPeriod ? historyRetentionPeriod,
58
50
String ? workspaceFolderPath,
59
51
bool ? isSSLDisabled,
60
- // Proxy settings
61
52
bool ? isProxyEnabled,
62
- String ? proxyHost,
63
- String ? proxyPort,
64
- String ? proxyUsername,
65
- String ? proxyPassword,
66
53
}) {
67
54
return SettingsModel (
68
55
isDark: isDark ?? this .isDark,
69
56
alwaysShowCollectionPaneScrollbar: alwaysShowCollectionPaneScrollbar ??
70
57
this .alwaysShowCollectionPaneScrollbar,
71
58
size: size ?? this .size,
59
+ offset: offset ?? this .offset,
72
60
defaultUriScheme: defaultUriScheme ?? this .defaultUriScheme,
73
61
defaultCodeGenLang: defaultCodeGenLang ?? this .defaultCodeGenLang,
74
- offset: offset ?? this .offset,
75
62
saveResponses: saveResponses ?? this .saveResponses,
76
63
promptBeforeClosing: promptBeforeClosing ?? this .promptBeforeClosing,
77
64
activeEnvironmentId: activeEnvironmentId ?? this .activeEnvironmentId,
78
65
historyRetentionPeriod:
79
66
historyRetentionPeriod ?? this .historyRetentionPeriod,
80
67
workspaceFolderPath: workspaceFolderPath ?? this .workspaceFolderPath,
81
68
isSSLDisabled: isSSLDisabled ?? this .isSSLDisabled,
82
- // Proxy settings
83
69
isProxyEnabled: isProxyEnabled ?? this .isProxyEnabled,
84
- proxyHost: proxyHost ?? this .proxyHost,
85
- proxyPort: proxyPort ?? this .proxyPort,
86
- proxyUsername: proxyUsername ?? this .proxyUsername,
87
- proxyPassword: proxyPassword ?? this .proxyPassword,
88
70
);
89
71
}
90
72
@@ -95,15 +77,16 @@ class SettingsModel {
95
77
isDark: isDark,
96
78
alwaysShowCollectionPaneScrollbar: alwaysShowCollectionPaneScrollbar,
97
79
size: size,
80
+ offset: offset,
98
81
defaultUriScheme: defaultUriScheme,
99
82
defaultCodeGenLang: defaultCodeGenLang,
100
- offset: offset,
101
83
saveResponses: saveResponses,
102
84
promptBeforeClosing: promptBeforeClosing,
103
85
activeEnvironmentId: activeEnvironmentId,
104
86
historyRetentionPeriod: historyRetentionPeriod,
105
87
workspaceFolderPath: workspaceFolderPath,
106
88
isSSLDisabled: isSSLDisabled,
89
+ isProxyEnabled: isProxyEnabled,
107
90
);
108
91
}
109
92
@@ -159,10 +142,6 @@ class SettingsModel {
159
142
final workspaceFolderPath = data["workspaceFolderPath" ] as String ? ;
160
143
final isSSLDisabled = data["isSSLDisabled" ] as bool ? ;
161
144
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 ? ;
166
145
167
146
const sm = SettingsModel ();
168
147
@@ -181,10 +160,6 @@ class SettingsModel {
181
160
workspaceFolderPath: workspaceFolderPath,
182
161
isSSLDisabled: isSSLDisabled,
183
162
isProxyEnabled: isProxyEnabled,
184
- proxyHost: proxyHost,
185
- proxyPort: proxyPort,
186
- proxyUsername: proxyUsername,
187
- proxyPassword: proxyPassword,
188
163
);
189
164
}
190
165
@@ -204,12 +179,7 @@ class SettingsModel {
204
179
"historyRetentionPeriod" : historyRetentionPeriod.name,
205
180
"workspaceFolderPath" : workspaceFolderPath,
206
181
"isSSLDisabled" : isSSLDisabled,
207
- // Proxy settings
208
182
"isProxyEnabled" : isProxyEnabled,
209
- "proxyHost" : proxyHost,
210
- "proxyPort" : proxyPort,
211
- "proxyUsername" : proxyUsername,
212
- "proxyPassword" : proxyPassword,
213
183
};
214
184
}
215
185
@@ -235,11 +205,7 @@ class SettingsModel {
235
205
other.historyRetentionPeriod == historyRetentionPeriod &&
236
206
other.workspaceFolderPath == workspaceFolderPath &&
237
207
other.isSSLDisabled == isSSLDisabled &&
238
- other.isProxyEnabled == isProxyEnabled &&
239
- other.proxyHost == proxyHost &&
240
- other.proxyPort == proxyPort &&
241
- other.proxyUsername == proxyUsername &&
242
- other.proxyPassword == proxyPassword;
208
+ other.isProxyEnabled == isProxyEnabled;
243
209
}
244
210
245
211
@override
@@ -259,10 +225,6 @@ class SettingsModel {
259
225
workspaceFolderPath,
260
226
isSSLDisabled,
261
227
isProxyEnabled,
262
- proxyHost,
263
- proxyPort,
264
- proxyUsername,
265
- proxyPassword,
266
228
);
267
229
}
268
230
}
0 commit comments