Repository navigation
Commit 7bca4d7
committed
fix: guard PSI/module resolution with read lock in notifyElementModifiedForPath
psiManager.findFile / structureProvider.getModule / findModuleForSourceId ran
without holding the read lock, so they could race a concurrent `analyze` read
section. Resolve them inside project.read { } (mirroring loadKtFile) and hand
the results to the existing project.write { } mutation block.1 parent 90e5471 commit 7bca4d7
1 file changed
Lines changed: 13 additions & 6 deletions
File tree
- lsp/kotlin/src/main/java/com/itsaky/androidide/lsp/kotlin/compiler
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | | - | |
219 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
220 | 227 | | |
221 | 228 | | |
222 | 229 | | |
| |||
0 commit comments