MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / getDiagnosticStateForFile

Function getDiagnosticStateForFile

src/lib/editorManager.js:2808–2814  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

2806 }
2807
2808 function getDiagnosticStateForFile(file) {
2809 if (!file || file.type !== "editor") return null;
2810 if (manager.activeFile?.id === file.id && editor?.state) {
2811 return editor.state;
2812 }
2813 return file.session || null;
2814 }
2815
2816 /**
2817 * Updates the side button container based on the value of `showSideButtons` in `appSettings`.

Callers 1

fileHasProblemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected