@@ -145,7 +145,7 @@ export interface IModelDecoration {
145145 */
146146 readonly id : string ;
147147 /**
148- * Identifier for a decoration's owener .
148+ * Identifier for a decoration's owner .
149149 */
150150 readonly ownerId : number ;
151151 /**
@@ -188,7 +188,7 @@ export interface IModelDecorationsChangeAccessor {
188188 */
189189 removeDecoration ( id : string ) : void ;
190190 /**
191- * Perform a minimum ammount of operations, in order to transform the decorations
191+ * Perform a minimum amount of operations, in order to transform the decorations
192192 * identified by `oldDecorations` to the decorations described by `newDecorations`
193193 * and returns the new identifiers associated with the resulting decorations.
194194 *
@@ -623,13 +623,13 @@ export interface ITextModel {
623623 validatePosition ( position : IPosition ) : Position ;
624624
625625 /**
626- * Advances the given position by the given offest (negative offsets are also accepted)
626+ * Advances the given position by the given offset (negative offsets are also accepted)
627627 * and returns it as a new valid position.
628628 *
629629 * If the offset and position are such that their combination goes beyond the beginning or
630630 * end of the model, throws an exception.
631631 *
632- * If the ofsset is such that the new position would be in the middle of a multi-byte
632+ * If the offset is such that the new position would be in the middle of a multi-byte
633633 * line terminator, throws an exception.
634634 */
635635 modifyPosition ( position : IPosition , offset : number ) : Position ;
@@ -851,7 +851,7 @@ export interface ITextModel {
851851 changeDecorations < T > ( callback : ( changeAccessor : IModelDecorationsChangeAccessor ) => T , ownerId ?: number ) : T | null ;
852852
853853 /**
854- * Perform a minimum ammount of operations, in order to transform the decorations
854+ * Perform a minimum amount of operations, in order to transform the decorations
855855 * identified by `oldDecorations` to the decorations described by `newDecorations`
856856 * and returns the new identifiers associated with the resulting decorations.
857857 *
@@ -903,7 +903,7 @@ export interface ITextModel {
903903 getLinesDecorations ( startLineNumber : number , endLineNumber : number , ownerId ?: number , filterOutValidation ?: boolean ) : IModelDecoration [ ] ;
904904
905905 /**
906- * Gets all the deocorations in a range as an array. Only `startLineNumber` and `endLineNumber` from `range` are used for filtering.
906+ * Gets all the decorations in a range as an array. Only `startLineNumber` and `endLineNumber` from `range` are used for filtering.
907907 * So for now it returns all the decorations on the same line as `range`.
908908 * @param range The range to search in
909909 * @param ownerId If set, it will ignore decorations belonging to other owners.
@@ -970,7 +970,7 @@ export interface ITextModel {
970970 /**
971971 * Push edit operations, basically editing the model. This is the preferred way
972972 * of editing the model. The edit operations will land on the undo stack.
973- * @param beforeCursorState The cursor state before the edit operaions . This cursor state will be returned when `undo` or `redo` are invoked.
973+ * @param beforeCursorState The cursor state before the edit operations . This cursor state will be returned when `undo` or `redo` are invoked.
974974 * @param editOperations The edit operations.
975975 * @param cursorStateComputer A callback that can compute the resulting cursors state after the edit operations have been executed.
976976 * @return The cursor state returned by the `cursorStateComputer`.
0 commit comments