class SyntaxTree::LanguageServer::InlayHints::Hint
This represents a hint that is going to be displayed in the editor.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/language_server.rb, line 23 def initialize(line:, character:, label:) @line = line @character = character @label = label end
Public Instance Methods
Source
# File lib/syntax_tree/language_server.rb, line 30 def to_json(*opts) { position: { line: line, character: character }, label: label }.to_json(*opts) end
This is the shape that the LSP expects.