Skip to content

v0.42.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Jul 14:20
Immutable release. Only release title and notes can be modified.
bcdaa1d

Regal v0.42.0 is here! Bringing a number of improvements to both the linter, language server and debug adapter.

42 is the magic constant of the smallest non-trivial magic cube, a 3×3×3 cube with entries of 1 through 27, where every row, column, corridor, and diagonal passing through the center sums to forty-two.

Wikipedia

Language Server

Find References and Rename

This release brings initial support for finding references and renaming symbols in the workspace. This first version
is limited to function arguments and some bindings, but we plan to expand this in future releases.

rename.mov

References are checked across the whole workspace, and renames work even when for example, a function is incrementally defined in several different files.

Thanks @SeanLedford for your work on this!

New future.keywords completion provider

The language server will now suggest future.keywords in completions for import lines — notably the new import future.keywords.not for now, with a few more to follow soon in OPA.

Debug Adapter

Evaluate

Regal's debug adapter protocol (DAP) implementation now supports evaluating variables and expressions inside of stack frames in debugging sessions! This also allows setting up watch expressions in clients like VS Code.

eval

Make sure to download the latest version of the OPA VS Code extension to try it out. More clients hopefully supported soon!

Various Improvements

  • Add --aggregate flag to regal new rule command to create aggregate rules. Thanks @mvanhorn!
  • Allocate less memory while linting with this one simple trick
  • Make common rule name provider provide suggestions for default rules
  • Make input.json completion provider provide suggestion for imports
  • Have boolean value completion provider provide suggestions in many more locations
  • Add inline docs to import provider
  • Add label details to built-in function completion provider
  • Bump OPA dependency to v1.18.2

Bugs Fixed

  • Override return type of object.subset while waiting for the next OPA release to fix this. Thanks @mvanhorn!
  • Fix wrong end location of reported for unresolved functions
  • Fix wrong end location reported by rule-shadows-builtin

Documentation

  • Update defunct styra.com links to point to archived copies until we find a better home for them
  • Documentation added for how GitHub Copilot breaks autocomplete in VS Code and a recommendation not to use it.

Changelog