Skip to content

✨ feat(mq-lsp): add pull-model diagnostics support#2013

Merged
harehare merged 1 commit into
mainfrom
feat/lsp-pull-diagnostics
Jul 14, 2026
Merged

✨ feat(mq-lsp): add pull-model diagnostics support#2013
harehare merged 1 commit into
mainfrom
feat/lsp-pull-diagnostics

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

Implement textDocument/diagnostic so clients can request diagnostics on demand per the LSP 3.17 pull model, alongside the existing publishDiagnostics push flow.

Extract Backend::compute_diagnostics as the single source of parse, type-check, HIR, and lint diagnostics so the push and pull paths stay in sync instead of duplicating the merge logic.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

Implement textDocument/diagnostic so clients can request diagnostics
on demand per the LSP 3.17 pull model, alongside the existing
publishDiagnostics push flow.

Extract Backend::compute_diagnostics as the single source of parse,
type-check, HIR, and lint diagnostics so the push and pull paths stay
in sync instead of duplicating the merge logic.
@harehare harehare merged commit 47529cd into main Jul 14, 2026
9 checks passed
@harehare harehare deleted the feat/lsp-pull-diagnostics branch July 14, 2026 12:54
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