Diagnostics
Publish errors on the file that owns them, including cross-file project diagnostics.
2ot turns IEC 61131-3 source into a revision-bound semantic workspace for diagnostics, navigation, refactors and agent context—without routing interactive analysis through vendor runtimes.
The language server is not a second compiler. It consumes the same project model so editor feedback, automation and command-line analysis converge on the same source relationships.
Publish errors on the file that owns them, including cross-file project diagnostics.
Definitions, references, document symbols and workspace symbols stay project-aware.
Rename and code actions operate on semantic relationships rather than text search.
Completion, hover and signature help use compiler-known source context.
Source classification follows parsed and resolved program structure.
A bounded 2ot context request packages selected language features for automation harnesses.
Editor overlays stay distinct from disk state, project diagnostics retain source ownership, and target-specific compiler legalization stays downstream of the common language model.
Disk files and editor overlays resolve to one workspace revision.
Parse, index and lower source once into revision-bound compiler facts.
Symbols, references, types, control flow and diagnostics share the same cached project model.
Editors, scripts and agent harnesses consume standard LSP plus compact 2ot context.
A harness can request bounded diagnostics, hover, completion, signatures, symbols, code actions, definitions, references, rename information and semantic tokens instead of reconstructing context from logs or grep.
Interactive diagnostics and semantic requests stay on the compiler/analyzer path. Siemens TIA Portal, Beckhoff TwinCAT and CODESYS remain stronger verification authorities when a workflow explicitly needs vendor evidence.
The active LSP work already covers workspace indexing and editor overlays. The roadmap is finishing the shared, target-neutral project model and located project diagnostics before deeper semantic diagnostics become the normal production path.