fix(language-server): shorter ingredient hover, conversion before nutrition #315

Closed
abiwab wants to merge 1 commit from fix/lsp-compact-ingredient-hover into main
Owner

The hover of an ingredient was too tall for Zed's popover, which does not scroll easily: a 13-line nutrition table came first, pushing the conversion of the amount written out of sight.

  • The conversion, sum and ratio sections now come right after the ingredient's name; the nutrition table goes last.
  • Each sub-nutrient (saturates, mono/poly-unsaturates, sugars) sits in its parent's row, e.g. Fat | 81 g (saturates 51 g, …): 7 rows at most instead of 12.
  • New hover-nutrition.test.ts; patch changeset.

Found while testing zed-gram by hand. Once merged, main goes into dev/1.6.

The hover of an ingredient was too tall for Zed's popover, which does not scroll easily: a 13-line nutrition table came first, pushing the conversion of the amount written out of sight. - The conversion, sum and ratio sections now come right after the ingredient's name; the nutrition table goes last. - Each sub-nutrient (saturates, mono/poly-unsaturates, sugars) sits in its parent's row, e.g. `Fat | 81 g (saturates 51 g, …)`: 7 rows at most instead of 12. - New `hover-nutrition.test.ts`; `patch` changeset. Found while testing `zed-gram` by hand. Once merged, `main` goes into `dev/1.6`.
fix(language-server): shorter ingredient hover, conversion before nutrition
All checks were successful
CI / Build & Test (pull_request) Successful in 4m59s
7c7b308243
abiwab closed this pull request 2026-11-29 18:41:27 +01:00
All checks were successful
CI / Build & Test (pull_request) Successful in 4m59s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.