enum

LSP::TextDocumentSaveReason

Inherits Enum < Comparable < Value < Object

Represents reasons why a text document is saved.

Constants

Manual = 1

Manually triggered, e.g. by the user pressing save, by starting debugging, or by an API call.

AfterDelay = 2

Automatic after a delay.

FocusOut = 3

When the editor lost focus.

Instance methods

after_delay?

Returns true if this enum value equals AfterDelay

Source
focus_out?

Returns true if this enum value equals FocusOut

Source
manual?

Returns true if this enum value equals Manual

Source