mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #17089 from atom/deprecate-undo-skip
Clarify deprecation of `undo: skip` option
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
"service-hub": "^0.7.4",
|
||||
"sinon": "1.17.4",
|
||||
"temp": "^0.8.3",
|
||||
"text-buffer": "13.13.0",
|
||||
"text-buffer": "13.14.0",
|
||||
"tree-sitter": "^0.11.0",
|
||||
"typescript-simple": "1.0.0",
|
||||
"underscore-plus": "^1.6.6",
|
||||
|
||||
@@ -446,7 +446,7 @@ class Selection {
|
||||
// behavior is suppressed.
|
||||
// level between the first lines and the trailing lines.
|
||||
// * `normalizeLineEndings` (optional) {Boolean} (default: true)
|
||||
// * `undo` If `skip`, skips the undo stack for this operation.
|
||||
// * `undo` *Deprecated* If `skip`, skips the undo stack for this operation. This property is deprecated. Call groupLastChanges() on the {TextBuffer} afterward instead.
|
||||
// * `bypassReadOnly` (optional) {Boolean} Must be `true` to modify a read-only editor. (default: false)
|
||||
insertText (text, options = {}) {
|
||||
if (!this.ensureWritable('insertText', options)) return
|
||||
|
||||
@@ -1320,7 +1320,7 @@ class TextEditor {
|
||||
// * `text` A {String}
|
||||
// * `options` (optional) {Object}
|
||||
// * `normalizeLineEndings` (optional) {Boolean} (default: true)
|
||||
// * `undo` (optional) {String} 'skip' will skip the undo system
|
||||
// * `undo` (optional) *Deprecated* {String} 'skip' will skip the undo system. This property is deprecated. Call groupLastChanges() on the {TextBuffer} afterward instead.
|
||||
// * `bypassReadOnly` (optional) {Boolean} Must be `true` to modify a read-only editor. (default: false)
|
||||
//
|
||||
// Returns the {Range} of the newly-inserted text.
|
||||
|
||||
Reference in New Issue
Block a user