summary refs log tree commit diff stats
path: root/compiler/plugins
diff options
context:
space:
mode:
authorNikolay Nikolov <nickysn@gmail.com>2024-03-15 19:20:10 +0200
committerGitHub <noreply@github.com>2024-03-15 18:20:10 +0100
commit899ba01ccf3edd9928d2c60314b7d75c5730310c (patch)
tree3d711f81d61c6ac3799a9949d0a52d359e394671 /compiler/plugins
parentc2c00776e3220309a7236a045ec6bf1595aa4779 (diff)
downloadNim-899ba01ccf3edd9928d2c60314b7d75c5730310c.tar.gz
+ added nimsuggest support for exception inlay hints (#23202)
This adds nimsuggest support for displaying inlay hints for exceptions.
An inlay hint is displayed around function calls, that can raise an
exception, which isn't handled in the current subroutine (in other
words, exceptions that can propagate back to the caller). On mouse hover
on top of the hint, a list of exceptions that could propagate is shown.

The changes, required to support this are already commited to
nimlangserver and the VS code extension. The extension and the server
allow configuration for whether these new exception hints are enabled
(they can be enabled or disabled independently from the type hints), as
well as the inlay strings that are inserted before and after the name of
the function, around the function call. Potentially, one of these
strings can be empty, for example, the user can choose to add an inlay
hint only before the name of the function, or only after the name of the
function.
Diffstat (limited to 'compiler/plugins')
0 files changed, 0 insertions, 0 deletions