@@ -356,7 +356,7 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
356356 label : 'foo.bar' ,
357357 kind : CompletionKind . Property ,
358358 insertText : 'foo.bar' ,
359- overwriteBefore : pos . column - 1
359+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
360360 } ]
361361 } ;
362362 }
@@ -371,7 +371,10 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
371371 label : 'boom' ,
372372 kind : CompletionKind . Property ,
373373 insertText : 'boom' ,
374- overwriteBefore : doc . getLineContent ( pos . lineNumber ) [ pos . column - 2 ] === '.' ? 0 : pos . column - 1
374+ range : Range . fromPositions (
375+ pos . delta ( 0 , doc . getLineContent ( pos . lineNumber ) [ pos . column - 2 ] === '.' ? 0 : - 1 ) ,
376+ pos
377+ )
375378 } ]
376379 } ;
377380 }
@@ -465,7 +468,7 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
465468 label : 'foo' ,
466469 kind : CompletionKind . Property ,
467470 insertText : 'foo' ,
468- overwriteBefore : pos . column - 1
471+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
469472 } ]
470473 } ;
471474 }
@@ -502,7 +505,7 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
502505 label : 'foo;' ,
503506 kind : CompletionKind . Property ,
504507 insertText : 'foo' ,
505- overwriteBefore : pos . column - 1
508+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
506509 } ]
507510 } ;
508511 }
@@ -549,7 +552,7 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
549552 label : 'foo.bar' ,
550553 kind : CompletionKind . Property ,
551554 insertText : 'foo.bar' ,
552- overwriteBefore : pos . column - 1
555+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
553556 }
554557 ]
555558 } ;
@@ -578,12 +581,12 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
578581 label : 'abc' ,
579582 kind : CompletionKind . Property ,
580583 insertText : 'abc' ,
581- overwriteBefore : pos . column - 1
584+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
582585 } , {
583586 label : 'äbc' ,
584587 kind : CompletionKind . Property ,
585588 insertText : 'äbc' ,
586- overwriteBefore : pos . column - 1
589+ range : Range . fromPositions ( pos . with ( undefined , 1 ) , pos )
587590 } ]
588591 } ;
589592 }
@@ -650,7 +653,7 @@ suite('SuggestModel - TriggerAndCancelOracle', function () {
650653 label : 'bar' ,
651654 kind : CompletionKind . Property ,
652655 insertText : 'bar' ,
653- overwriteBefore : 2 ,
656+ range : Range . fromPositions ( pos . delta ( 0 , - 2 ) , pos ) ,
654657 additionalTextEdits : [ {
655658 text : ', bar' ,
656659 range : { startLineNumber : 1 , endLineNumber : 1 , startColumn : 17 , endColumn : 17 }
0 commit comments