Commit c8fb5ad
authored
stop reading before writing stores (eclipse-theia#12717)
The merging of on disk values using `deepmerge` is bogus.
Instead we'll completely overwrite the file. This should be fine as the
`PluginsKeyValueStorage` singleton is shared across all plugin host
processes, meaning there shouldn't be a risk for a race condition
to corrupt the file being written on disk.
Note that there is still a race condition risk when multiple Theia
backends are running on the same host, but odds should be low.1 parent a75dd66 commit c8fb5ad
File tree
1 file changed
+3
-6
lines changed- packages/plugin-ext/src/main/node
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
119 | 116 | | |
120 | 117 | | |
121 | 118 | | |
| |||
0 commit comments