Skip to content

feat(lsp): implement Real-Time Virtual Site Map (VSM) and O(1) incremental patching#156

Merged
PythonWoods-Dev merged 3 commits into
mainfrom
feature/v0.22.0-vsm-clean
Jul 12, 2026
Merged

feat(lsp): implement Real-Time Virtual Site Map (VSM) and O(1) incremental patching#156
PythonWoods-Dev merged 3 commits into
mainfrom
feature/v0.22.0-vsm-clean

Conversation

@PythonWoods-Dev

Copy link
Copy Markdown
Contributor

Overview

This PR delivers the v0.22.0 milestone for the Zenzic Core. It grants the Language Server (ZLS) global topological awareness, enabling real-time feedback for structural rules like Z101 (Broken Link) and Z104 (File Not Found).

Architectural Implementation

  • Synchronous VSM Initialization: The server now intercepts the workspace/workspaceFolders payload during the initialize handshake to perform a zero-threading build of the global VSM.
  • O(1) Incremental Patching: Registered workspace/didChangeWatchedFiles. File creations, deletions, and updates trigger an $O(1)$ dictionary patch, avoiding full AST re-evaluations and preventing race conditions.
  • Zero-Threading Policy Enforced: Discarded earlier proposals for background daemon threads. The VSM is maintained entirely within the synchronous stdio multiplexer loop.

Quality Gate: just verify passed. DQS 98/100.

Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
…ental patching

Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
@PythonWoods-Dev
PythonWoods-Dev merged commit 320f1dc into main Jul 12, 2026
7 checks passed
@PythonWoods-Dev
PythonWoods-Dev deleted the feature/v0.22.0-vsm-clean branch July 12, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant