MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / refreshDiagnostics

Function refreshDiagnostics

extensions/vscode/src/extension.ts:103–111  ·  view source on GitHub ↗
(doc?: vscode.TextDocument)

Source from the content-addressed store, hash-verified

101
102 // ── Diagnostics helpers ───────────────────────────────────────────────────
103 const refreshDiagnostics = async (doc?: vscode.TextDocument): Promise<void> => {
104 const target = doc ?? vscode.window.activeTextEditor?.document;
105 if (!target) return;
106 try {
107 await diagnostics.refreshForDocument(target);
108 } catch (err) {
109 vscode.window.setStatusBarMessage(`CGC diagnostics error: ${String(err)}`, 4000);
110 }
111 };
112
113 // ─── Event Coordination ─────────────────────────────────────────────────────
114 const invalidateAll = () => {

Callers 2

invalidateAllFunction · 0.85
activateFunction · 0.85

Calls 2

refreshForDocumentMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected