class RubyLsp::Requests::InlayHints
Inlay hints are labels added directly in the code that explicitly show the user something that might otherwise just be implied.
Configuration¶ ↑
To enable rescue hints, set rubyLsp.featuresConfiguration.inlayHint.implicitRescue
to true
.
To enable hash value hints, set rubyLsp.featuresConfiguration.inlayHint.implicitHashValue
to true
.
To enable all hints, set rubyLsp.featuresConfiguration.inlayHint.enableAll
to true
.
Example¶ ↑
begin puts "do something that might raise" rescue # Label "StandardError" goes here as a bare rescue implies rescuing StandardError puts "handle some rescue" end
Example¶ ↑
var = "foo" { var: var, # Label "var" goes here in cases where the value is omitted a: "hello", }
Public Class Methods
new(document, range, hints_configuration, dispatcher)
Calls superclass method