Files
Hikari Hayashi 3dbf6a8101 Fix npm-backed language server setup in pnpm and Yarn projects (#65280)
## Summary

Give directory-less npm commands a Zed-owned working directory and
explicit prefix, preventing project devEngines requirements from
blocking language server package queries. Apply the directory
consistently to managed and system runtimes while preserving explicit
install targets.

Cover command construction, child working directories, and propagation
of directory-creation errors for both runtimes.

Fixes #65279

## Testing

Tested locally and confirmed language server setup works in Yarn and
pnpm projects.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- Fixed language server setup failing with `EBADDEVENGINES` in Yarn and
pnpm projects.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-10-21 15:37:34 +00:00
..