1 2 3 4 5 6 7 8 9 10 11 12 13
/// Represents reasons why a text document is saved. #[derive(Debug, Serialize)] pub enum TextDocumentSaveReason { /// Manually triggered, e.g. by the user pressing save, by starting debugging, /// or by an API call. Manual = 1, /// Automatic after a delay. AfterDelay = 2, /// When the editor lost focus. FocusOut = 3, }