Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.6] + added nimsuggest support for exception inlay hints (#23202) #23421

Open
wants to merge 2 commits into
base: version-1-6
Choose a base branch
from

Commits on Mar 18, 2024

  1. + added nimsuggest support for exception inlay hints (nim-lang#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.
    
    (cherry picked from commit 899ba01)
    nickysn committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    7294a5f View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    8bbd76c View commit details
    Browse the repository at this point in the history