feat(vscode): serving time in the work plan panel (views phase 7, step 1) #107
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!107
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/views-p7-vscode-serving"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 7, step 1. The audit (Q2) widened phase 7 to the whole session in VS Code; it is split like phase 5: this PR is the serving time, step 2 will bring scale, stock and baker's reference to the panel bar.
suggestServeTimes(input, { lang, days, limit, mealTimes })puts the serving time search in words (times that work over the next days, why the others do not, the earliest). The playground now uses it instead of its own copy, and its "Earliest" label comes from i18n instead of a hard-coded fr/en.gram/serveTimes { uri }request (asked only while the suggestions are shown);mealTimesread from.gram/config.yamlas in the CLI; theinitializecapability gives each view'sneedsand the words of the serving controls (strings.serving, en/fr).needshasrunSheet, never by id. The serving time is kept per recipe in memory, forgotten on close, never written to the settings; stale answers are dropped. A test compiles the page's inline script.vscode-work-plan,lsp-views-protocolandrenderer-prepare-viewsextended.Build, typecheck, lint, test (2182), conformance green; playground 921.0 KB / 930 KB. Checked by hand in the extension host by the maintainer.