LSP: validate unsaved buffers (overlay model, debounced, document-local fast path)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, rust
- Área
- backend-api-design, devtools, testing
Línea de trabajo
Start with the syscribe lsp implementation and the existing in-memory candidate validation used by the rename path; inspect LSP document sync, diagnostics, and related tests. Add test coverage for unsaved edits, dependent diagnostics, closing without saving, and the latency target. Done means the acceptance cases pass, validation can be disabled with syscribe.validateOnType, and disk content remains unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of #380.
Current state
The server validates saved content, not unsaved buffers: didChange never triggers a reload or diagnostics (syscribe help lsp). A new user edits a requirement, sees no feedback, saves, and then sees a screenful of findings.
Proposal
- Overlay buffers. Keep the text of open documents (
didOpen/didChange, full or incremental sync) in an in-memory overlay on top of the disk model; the rename path already validates a candidate in memory, so the overlay machinery partly exists. - Debounced validation. After a short idle (default 300 ms, configurable), re-parse only the changed document, re-validate the model from the overlay, and publish diagnostics. Publish for the changed document immediately and for dependents (documents that reference it) in a second pass, and clear them when the buffer is closed or reverted.
- Fast path. Findings that depend only on the document itself (frontmatter YAML,
E002, field schema, id pattern, missing required fields) are published within the keystroke budget; whole-model findings follow. - Disk wins on save.
didSaveand watched-file events reload as today; the overlay is dropped for a closed document. - Setting
syscribe.validateOnType(initialization option) so it can be turned off for very large models.
Acceptance (tests first)
- A broken id typed into a buffer produces a diagnostic without saving, and disappears when corrected.
- A change in one requirement updates the findings that concern its children (dependent pass).
- Closing the buffer without saving restores the disk diagnostics; the file on disk is never modified.
- Typing latency: the document-local pass stays under 100 ms on a 10,000-element model.
Part of #272. Scope: syscribe lsp only (standard LSP, ADR-SYS-LSP-001).
Generated by Claude Code
- Lenguaje dominante
- Rust
- Estrellas
- 8
- Forks
- 1
- Merge medio
- 3 h 35 min
- PR fusionados (30 d)
- 69
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sjames/syscribe
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
sjames/syscribe#411 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Format-preserving writes for structural frontmatter (features, connections, layout, shapes, edges)Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
sjames/syscribe#405 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de sjames/syscribe
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
software-mansion/pathfinder#3620 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug priority: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
storytold/wordcraft#6211 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
backlog multiple issues priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
storytold/pdfcraft#6911 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
DGNIMPORT: "The DGN model has nothing that can be imported" when the first element streams are emptyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
HakanSeven12/OpenCADStudio#2820 · 1 comentario ·
Los mantenedores suelen responder en 1 día