feat(lsp): add Prisma Language Server support#23
Merged
Conversation
Add support for the Prisma Language Server (@prisma/language-server) to @pleaseai/code-lsp package, enabling LSP features for .prisma files. Features: - Auto-download via npm to ~/.cache/dora/prisma-lsp/ - Version tracking with marker file - Root detection via schema.prisma or prisma/schema.prisma - Supports diagnostics, completions, hover, go-to-definition, formatting, code actions, rename, and document symbols Closes #22
8 tasks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
- Coverage 34.68% 33.09% -1.60%
==========================================
Files 13 13
Lines 2606 2798 +192
==========================================
+ Hits 904 926 +22
- Misses 1702 1872 +170 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add Prisma Language Server with auto-download support - Add Dart language server (was missing from root README) - Add Vue language server (was missing from root README)
- Add prisma formatter with `bun x prisma format --schema $FILE` - Enable when schema.prisma or prisma/schema.prisma exists - Update documentation in README.md and CLAUDE.md
- Document supported formatters with auto-detection - Add configuration examples (dora.json, opencode.json) - Include API reference and usage examples
- Mark all phases as completed in tasklist.json - Add pre-approved tool permissions to settings.json
- Fix empty catch blocks in nearestRoot() to check for ENOENT specifically - Fix empty catch block in DenoServer.root() for consistent error handling - Add attachLSPProcessHandlers to TypeScript, Deno, Pyright, Gopls, RustAnalyzer, and Oxlint servers for better process lifecycle logging - Add error handling for bunx fallback in TypeScript and Pyright servers - Fix misleading test name "returns projectPath when no schema found" to "detects schema.prisma at project root"
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
Add support for the Prisma Language Server (
@prisma/language-server) to@pleaseai/code-lsppackage, enabling LSP features for.prismaschema files.Changes
PrismaServerdefinition with auto-download supportsetupPrismaDependencies()function for npm-based installation.prismalanguage mappingFeatures
@prisma/language-server@31.1.35to~/.cache/dora/prisma-lsp/schema.prismaorprisma/schema.prismaTest Plan
Closes #22