class LSProtocol::RenameParams
- LSProtocol::RenameParams
- Reference
- Object
Overview
The parameters of a RenameRequest
.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(new_name : String | Nil, position : Position | Nil, text_document : TextDocumentIdentifier | Nil, work_done_token : ProgressToken | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#new_name : String
The new name of the symbol.
-
#position : Position
The position at which this request was sent.
-
#text_document : TextDocumentIdentifier
The document to rename.
-
#work_done_token : ProgressToken | Nil
An optional token that a server can use to report work done progress.
Constructor Detail
def self.new(new_name : String | Nil, position : Position | Nil, text_document : TextDocumentIdentifier | Nil, work_done_token : ProgressToken | Nil = nil)
#
Instance Method Detail
def new_name : String
#
The new name of the symbol. If the given name is not valid the
request must return a ResponseError
with an
appropriate message set.
def work_done_token : ProgressToken | Nil
#
An optional token that a server can use to report work done progress.