Commit aa930a4
committed
fix: read only settings acted as snapshots
- they did not reflect any subsequent update because updates create a new backing readonly instance
- with this patch we simplified the code even more by exposing a readonly interface with all of the
implementation in the CoderSettingsStore. PluginSettingsStore and Environments are the only persist-able
stores.
- because read only instances share the same settings store instances any update on the writable will reflect
on the readable instances as well.1 parent 09e15db commit aa930a4
File tree
6 files changed
+338
-299
lines changed- src/main/kotlin/com/coder/toolbox
- cli
- settings
- store
- util
- views
6 files changed
+338
-299
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
Lines changed: 0 additions & 244 deletions
This file was deleted.
0 commit comments