The Prisma Language Server implements the
Language Server Protocol (LSP)
to provide IDE features for Prisma schema files (.prisma).
npm install -g @prisma/language-server# Run via stdio (for editor integration)
prisma-language-server --stdio- Diagnostics — Real-time error and warning highlighting
- Completions — Context-aware suggestions for keywords, types, attributes
- Hover — Documentation on hover for models, fields, attributes
- Go to Definition — Jump to model/enum definitions
- Document Formatting — Format
.prismafiles - Code Actions — Quick fixes for common issues
- Rename — Rename models, enums, fields with automatic
@maphandling - Document Symbols — Outline view of models, enums, generators
- References — Find all usages of a model or enum
For development and architecture details, see:
- Architecture — System design and file structure
- Language Server — Key abstractions and internals
- Development — Setup and debugging
- Testing — Test patterns and helpers
See CONTRIBUTING.md for development workflow details.
Report security issues to security@prisma.io