Skip to content

Latest commit

 

History

History

language-server

README.md

Prisma Language Server

The Prisma Language Server implements the Language Server Protocol (LSP) to provide IDE features for Prisma schema files (.prisma).

Installation

npm install -g @prisma/language-server

Usage

# Run via stdio (for editor integration)
prisma-language-server --stdio

Features

  • 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 .prisma files
  • Code Actions — Quick fixes for common issues
  • Rename — Rename models, enums, fields with automatic @map handling
  • Document Symbols — Outline view of models, enums, generators
  • References — Find all usages of a model or enum

Documentation

For development and architecture details, see:

Contributing

See CONTRIBUTING.md for development workflow details.

Security

Report security issues to security@prisma.io