Commit Graph

13 Commits

Author SHA1 Message Date
Piotr Osiewicz 0fb86b5289 Route built-in npm language server setup through managed resources 2026-11-23 15:49:38 +01:00
Piotr Osiewicz 937cf6b825 Migrate built-in Node callers to managed resources 2026-11-23 11:16:38 +01:00
Piotr Osiewicz 8a1ac4c339 Pass the background executor to managed resource commands 2026-11-20 22:07:43 +01:00
Piotr Osiewicz 015885e5e5 Route extension Node operations through managed resources 2026-11-20 18:07:02 +01:00
Piotr Osiewicz 67c3a35419 Hold resource read locks while executing commands 2026-11-15 01:14:04 +01:00
Piotr Osiewicz 1bed9c3b38 Add typed resource selectors to permission rules
Store resource permissions as ordered rules with closed, typed resource identities and generated resource kinds. Support kind-wide selectors and specific payloads, and persist exact approvals without broadening wildcard rules.
2026-11-14 23:44:44 +01:00
Piotr Osiewicz 164c7c3fb9 Simplify managed resource identities to string keys
Represent ResourceId as a transparent string newtype and use its string consistently for caching, approval, and permission settings. Namespace npm identities by their instance key rather than separating resource kind and key.
2026-11-14 07:36:23 +01:00
Piotr Osiewicz 65acd962a5 Add resource permission settings and two-phase acquisition 2026-11-11 00:19:08 +01:00
Piotr Osiewicz cd915e322e Require separate approval for managed resource commands 2026-11-04 14:11:42 +01:00
Piotr Osiewicz d6c5fbcca8 Construct npm runtime during managed resource acquisition 2026-11-03 18:09:52 +01:00
Piotr Osiewicz 4e4ac460b5 Add managed resources and npm proof of concept 2026-11-03 17:52:01 +01:00
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
Ben Brandt afecd6d719 node_runtime: Expose standalone system Node discovery (#64928)
Expose `SystemNode::discover` so callers can locate and validate Node
without also requiring npm or initializing Zed's cache. It accepts a
configured executable or an explicit search PATH, preserves the Node 22
minimum, and reports typed lookup, execution, and version errors with
guidance.

Zed's existing system runtime reuses the validation before its existing
npm setup. Configured overrides and PATH order remain authoritative.
Selected paths are made absolute without resolving symlinks, and
absolute executables remain usable after the process's working directory
is removed. Managed downloads and npm policy are unchanged.

Release Notes:

- N/A
2026-09-30 04:51:51 +00:00