Repository navigation
Release v6.25.0
A provide line adds a named value to $context, declared once at the application, a module, a feature or a slice and read as $context.<name> beneath it.
Added
provide <name> <Type> [optional] from query <Query> [by <expression>, ...],from host,from <literal or $context expression>, or afilereference or inline code block beneath it, at the application, module, feature and slice levels. The nearest declaration wins and an override keeps the type (#1300)- Diagnostics
PLAY1119toPLAY1129for malformed, duplicate, reserved-name, mistyped, unknown-query, observable-query and cyclic provides - A
Valuesproperty andValuesAs<T>()onCommandContext,QueryContext,RuleContext,PolicyContextand the newProvideContext, so code reads provided values by name providesupport in both compilers, the printer, Monaco (completion, hover, validation), the VS Code grammar and the MCP authoring index, with documentation and a multi-file fixture
Changed
- Provided names and
$context.audiencesno longer raisePLAY0153as unknown context paths - A model that uses
providein executable form reportsPLAY0268until a later release admits it; it is a preview construct