MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / update

Function update

src/cm/lsp/diagnostics.ts:81–88  ·  view source on GitHub ↗
(value: LspDiagnostic[], tr)

Source from the content-addressed store, hash-verified

79 return [];
80 },
81 update(value: LspDiagnostic[], tr): LspDiagnostic[] {
82 for (const effect of tr.effects) {
83 if (effect.is(setPublishedDiagnostics)) {
84 value = effect.value;
85 }
86 }
87 return value;
88 },
89});
90
91type DiagnosticSeverity = "error" | "warning" | "info" | "hint";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected