-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
The entry point to the oracle API is currently the FindDefinition function, which when provided a ref returns the location of its definition.
Both packages and rules can however be defined incrementally across any number of locations, and both the language server protocol and most editors allow a list of locations in response to GTD queries. I suggest we extend the oracle API with a new FindDefinitions function, that does what FindDefinition currently does, but returning all definitions found instead of the first one in the list.
Personally I'm not sure that I'd prefer always getting back a list of locations when clicking to GTD, but probably only in cases where a rule or package is defined across multiple files. But exactly how clients should handle this can be both tweaked and made configurable. OPA should simply allow them to decide for themselves π
Metadata
Metadata
Assignees
Labels
Type
Projects
Status