v0.20.0
This release adds various improvements to the functionality of the language server as well as also including a number of housekeeping updates and fixes.
Language Server: Hover support for built-in function definitions
The language server protocol supports requesting information about the tokens under the cursor. This release implements support for such requests when users are hovering over Rego's built-in functions. Clicking the link in the tooltip heading will take you to the OPA docs for that built-in.
Language Server: Inlay Hints
Inlay Hint requests are also supported from this release. Inlay hints are allow named function arguments to be shown as users edit function calls.
Improvements
- Running the language server with
--verbose
will now show the full request response logs. - File ignore config is now also supported by the language server.
- Unresolved imports are not flagged as part of
prefer-package-imports
Updates
- This release updates OPA to v0.63.0, see the OPA changelog for more detail.
- Go SARIF has also been updated to 2.3.1
Changelog
- 3568183: docs: Add note about nvim-lspconfig (#604) (@charlieegan3)
- 9a670bf: build(deps): bump github.com/owenrumney/go-sarif/v2 from 2.3.0 to 2.3.1 (#606) (@dependabot[bot])
- 45705ca: Don't flag unresolved imports in
prefer-package-imports
(#607) (@anderseknert) - 1f2b72f: docs: use 4 spaces for indentation in
circular-imports
docs (#612) (@anderseknert) - 9200ad1: Publish binaries from build workflow (#610) (@anderseknert)
- 3f0c1bc: OPA v0.63.0 (#614) (@anderseknert)
- b5de824: lsp:
textDocument/hover
implementation (#617) (@anderseknert) - 155d8f5: lsp: Missing built-in data is not a hard error (#619) (@charlieegan3)
- 9081abf: lsp: Support file ignore config (#620) (@charlieegan3)
- 4d7cbe1: lsp: add inlay hint support (#621) (@anderseknert)
- 6df97b3: lsp: Make verbose logging configurable (#623) (@charlieegan3)