()
| 76 | |
| 77 | const lspPublishedDiagnostics = StateField.define<LspDiagnostic[]>({ |
| 78 | create(): LspDiagnostic[] { |
| 79 | return []; |
| 80 | }, |
| 81 | update(value: LspDiagnostic[], tr): LspDiagnostic[] { |
| 82 | for (const effect of tr.effects) { |
| 83 | if (effect.is(setPublishedDiagnostics)) { |