class LSProtocol::TextDocumentSyncOptions
- LSProtocol::TextDocumentSyncOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(change : TextDocumentSyncKind | Nil = nil, open_close : Bool | Nil = nil, save : Bool | SaveOptions | Nil = nil, will_save : Bool | Nil = nil, will_save_wait_until : Bool | Nil = nil)
Instance Method Summary
-
#change : TextDocumentSyncKind | Nil
Change notifications are sent to the server.
- #open_close : Bool | Nil
-
#save : Bool | SaveOptions | Nil
If present save notifications are sent to the server.
- #will_save : Bool | Nil
- #will_save_wait_until : Bool | Nil
Constructor Detail
def self.new(change : TextDocumentSyncKind | Nil = nil, open_close : Bool | Nil = nil, save : Bool | SaveOptions | Nil = nil, will_save : Bool | Nil = nil, will_save_wait_until : Bool | Nil = nil)
#
Instance Method Detail
def change : TextDocumentSyncKind | Nil
#
Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
def save : Bool | SaveOptions | Nil
#
If present save notifications are sent to the server. If omitted the notification should not be sent.