Commit a02f827
committed
fix: don't drain view disposables on render, only on re-resolve
_resetReadyState() is called from both resolveWebviewView() and
render(). The previous commit drained _viewDisposables inside
_resetReadyState(), which destroyed message/visibility/config
listeners on every render() call. In ArtemisWebviewProvider, render()
fires on every sidebar view switch, killing all communication after
the first navigation.
Move _drainViewDisposables() to resolveWebviewView() only, where
new listeners are registered immediately after.1 parent 3c3c5e7 commit a02f827
3 files changed
Lines changed: 3 additions & 2 deletions
File tree
- extension/src/extension/provider
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
0 commit comments