File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -1265,26 +1265,22 @@ export interface ITextModel {
1265
1265
/**
1266
1266
* Undo edit operations until the previous undo/redo point.
1267
1267
* The inverse edit operations will be pushed on the redo stack.
1268
- * @internal
1269
1268
*/
1270
1269
undo ( ) : void | Promise < void > ;
1271
1270
1272
1271
/**
1273
1272
* Is there anything in the undo stack?
1274
- * @internal
1275
1273
*/
1276
1274
canUndo ( ) : boolean ;
1277
1275
1278
1276
/**
1279
1277
* Redo edit operations until the next undo/redo point.
1280
1278
* The inverse edit operations will be pushed on the undo stack.
1281
- * @internal
1282
1279
*/
1283
1280
redo ( ) : void | Promise < void > ;
1284
1281
1285
1282
/**
1286
1283
* Is there anything in the redo stack?
1287
- * @internal
1288
1284
*/
1289
1285
canRedo ( ) : boolean ;
1290
1286
Original file line number Diff line number Diff line change @@ -2372,6 +2372,24 @@ declare namespace monaco.editor {
2372
2372
* This can have dire consequences on the undo stack! See @pushEOL for the preferred way.
2373
2373
*/
2374
2374
setEOL ( eol : EndOfLineSequence ) : void ;
2375
+ /**
2376
+ * Undo edit operations until the previous undo/redo point.
2377
+ * The inverse edit operations will be pushed on the redo stack.
2378
+ */
2379
+ undo ( ) : void | Promise < void > ;
2380
+ /**
2381
+ * Is there anything in the undo stack?
2382
+ */
2383
+ canUndo ( ) : boolean ;
2384
+ /**
2385
+ * Redo edit operations until the next undo/redo point.
2386
+ * The inverse edit operations will be pushed on the undo stack.
2387
+ */
2388
+ redo ( ) : void | Promise < void > ;
2389
+ /**
2390
+ * Is there anything in the redo stack?
2391
+ */
2392
+ canRedo ( ) : boolean ;
2375
2393
/**
2376
2394
* An event emitted when the contents of the model have changed.
2377
2395
* @event
You can’t perform that action at this time.
0 commit comments