Commit a6ee617
committed
fix(vscode): invalidate the standby on every rstack config event
The config watcher listened for content changes only, on the reasoning that
a create or a delete moves the detection signature and arrives as a detection
change instead. That holds for a real create or delete, not for the
delete/create pair an editor emits when it saves by atomically replacing the
file: the config path is gone and back within one scan, the signature records
paths rather than content, and no detection change fires. Both halves were
also ignored here, so nothing invalidated the standby and the parked process
kept serving the config it had loaded at spawn — the same file then formatted
one way hot and another way cold.
Watch all three events. A redundant kill costs nothing: it is idempotent and
the active editor re-arms through the usual debounce.1 parent 54789e4 commit a6ee617
1 file changed
Lines changed: 12 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| |||
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
| |||
0 commit comments