|
@@ -176,7 +176,7 @@ export default class InlineAutoformatEditing {
|
|
|
const block = focus.parent;
|
|
const block = focus.parent;
|
|
|
const { text, range } = getLastTextLine( model.createRange( model.createPositionAt( block, 0 ), focus ), model );
|
|
const { text, range } = getLastTextLine( model.createRange( model.createPositionAt( block, 0 ), focus ), model );
|
|
|
const testOutput = testCallback( text );
|
|
const testOutput = testCallback( text );
|
|
|
- const rangesToFormat = testOutputToRanges( range.start, testOutput.format, editor.model );
|
|
|
|
|
|
|
+ const rangesToFormat = testOutputToRanges( range.start, testOutput.format, model );
|
|
|
const rangesToRemove = testOutputToRanges( range.start, testOutput.remove, model );
|
|
const rangesToRemove = testOutputToRanges( range.start, testOutput.remove, model );
|
|
|
|
|
|
|
|
if ( !( rangesToFormat.length && rangesToRemove.length ) ) {
|
|
if ( !( rangesToFormat.length && rangesToRemove.length ) ) {
|