Skip to content

0.22.0

Compare
Choose a tag to compare
@robertoaloi robertoaloi released this 04 Feb 13:08
· 207 commits to main since this release
4205028

Highlights

Parse Incomplete Text

Screenshot 2022-02-04 at 13 44 53

Ever been annoyed by not being able to navigate or hover for docs functions simply because your function is not complete and therefore it does not parse? @gomoripeti improved the way Points of Interest are extracted from the code, so that's no longer the case!

Improved Support for Variables

Thanks to @plux Erlang LS can now identify the scope of a variable in a more consistent and reliable way. Among the new improvements:

  • Improve the identification of variable scopes within functions
  • Add possibility to rename variables within -spec
  • Fix parsing of variables within macros
  • Add support for navigating variables outside of functions
  • Add support for finding variable references

Rename Functions While Standing on -spec

Screenshot 2022-02-04 at 14 06 06

It was already possible to rename a function via Erlang LS (which would update all references to it). For extra convenience, it is now possible to trigger the rename operation from a -spec, too!

Global Config

maps:merge(Global, Local)

Erlang LS offers the possibility to specify a system-wide erlang-ls.config. Until now, a local configuration for a project would override the global one entirely. Erlang LS now combines the two configuration, for a hopefully more natural development experience.

Module Name Check

Screenshot 2022-02-04 at 13 43 02

In Erlang, the name of a module, expressed in a module attribute has to coincide with the filename minus the extension to ensure code loading works smoothly.

A new diagnostic is now emitted when this is not the case, informing the user. The next natural step is to add a quick action to quickly fix this. Why not to implement this as your first Erlang LS contribution? We are happy to help in getting started on how to become a contributor!

Debug Logs

erlang_ls -l debug

Due to a bug, it was not possible to correctly visualize debug logs. Thanks to @AminArria this bug is finally fixed, so happy troubleshooting!

What's Changed

New Contributors

Full Changelog: 0.21.2...0.22.0