Hot-reload all current ZeroSyntax settings - #60
Merged
Conversation
|
| Filename | Overview |
|---|---|
| crates/server/src/backend.rs | Centralizes runtime settings parsing and applies hot-reloaded analysis, formatting, schema, and base-root changes with index replacement and diagnostic refresh. |
| editors/vscode/src/extension.ts | Switches VS Code configuration synchronization to the root zerosyntax section and restarts only when the server executable path changes. |
| crates/server/tests/e2e.py | Extends the stdio E2E harness to cover runtime setting changes, dynamic formatting registration, base-root replacement, schema reload, and stale diagnostics. |
| editors/vscode/src/test/suite/smoke.test.ts | Adds smoke coverage for the bare-percentage quick fix and hot-reloaded diagnostics in the VS Code extension. |
| editors/vscode/package.json | Updates extension setting descriptions for hot-reload behavior, background reindexing, and the server-path restart exception. |
| docs/language-server.md | Documents initialization and runtime configuration behavior, dynamic formatting, and reindexing semantics for standalone LSP clients. |
| editors/vscode/README.md | Updates VS Code user-facing settings documentation to reflect hot-reload behavior and the reduced restart scope. |
| AGENTS.md | Updates internal architecture notes to describe runtime setting hot-reload, dynamic formatting registration, and rebuild behavior. |
Reviews (2): Last reviewed commit: "Normalize VS Code settings sync" | Re-trigger Greptile
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Impact
Analysis and formatting settings now apply to open documents without restarting. Schema and base-root changes rebuild current workspace state with progress reporting. Only changing the server executable path restarts the language server.
Validation
cargo testcargo build -p zerosyntax-serverpython crates/server/tests/e2e.py target/debug/zerosyntax-lsp.exenpm run compile --prefix editors/vscodenpm run compile:test --prefix editors/vscodeThe VS Code Electron test runner downloaded a
Code.exethat rejects the harness flags before extension loading; source and test compilation pass. No large map corpus was available fortyping_latency.py.