Skip to content

31.12.13

Choose a tag to compare

@github-actions github-actions released this 08 Oct 08:18
dff2fc7
feat: offer automatic Prisma ORM 8 CLI installation (#2004)

Prompt users when a Prisma ORM 8 schema cannot start its language server
because the workspace-local CLI is missing, and offer an automatic
installation path.

## Changes

- Show a persistent modal explaining that the CLI enables autocomplete,
formatting, and error checking, with actions to install or continue
without language features.
- Use `package-manager-detector` to select the workspace package manager
and run `prisma@latest` installation as a visible VS Code task.
- Restart the language server only after successful installation. Show
manual-install guidance on failure, without asking users to retry a
restart.
- Add tests for detection, user choices, task lifecycle, trust checks,
and restart behavior.

## Why

A silent startup failure leaves users without editor assistance. An
explicit install action keeps dependency changes opt-in, while task exit
codes make automatic restart reliable.

## Validation

- Type checking passed after rebasing onto main using the installed
compiler: `./node_modules/.bin/tsc --noEmit -p
packages/vscode/tsconfig.json`.
- Targeted lint, formatting, and diff checks passed during development.
- 36 focused tests passed before the final modal change; the latest test
run was blocked before execution by missing
`@rollup/rollup-linux-arm64-gnu`.
- An earlier development build bundled the extension, then failed with
`EACCES` while copying Studio static assets.
- After rebasing, the pnpm typecheck wrapper attempted a dependency
reinstall and stopped with `ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY`;
the dependency tree was left intact.