@@ -3,7 +3,7 @@ import { CancellationToken, CompletionItem, CompletionItemKind, CompletionItemTa
33import { caseScore , matchScore , matchScoreWithPositions } from '../../completion/match'
44import sources from '../../completion/sources'
55import { CompleteOption , InsertMode , ISource } from '../../completion/types'
6- import { checkIgnoreRegexps , Converter , ConvertOption , createKindMap , emptLabelDetails , getDetail , getDocumentaions , getInput , getKindHighlight , getKindText , getPriority , getReplaceRange , getResumeInput , getWord , hasAction , highlightOffert , indentChanged , isWordCode , MruLoader , OptionForWord , Selection , shouldIndent , shouldStop , toCompleteDoneItem } from '../../completion/util'
6+ import { checkIgnoreRegexps , Converter , ConvertOption , createKindMap , emptLabelDetails , getDetail , getDocumentaions , getInput , getKindHighlight , getKindText , getPriority , getReplaceRange , getResumeInput , getWord , hasAction , highlightOffset , indentChanged , isWordCode , MruLoader , OptionForWord , Selection , shouldIndent , shouldStop , toCompleteDoneItem } from '../../completion/util'
77import { WordDistance } from '../../completion/wordDistance'
88import events from '../../events'
99import languages from '../../languages'
@@ -87,10 +87,10 @@ describe('util functions', () => {
8787 } )
8888
8989 it ( 'should get highlight offset' , ( ) => {
90- let n = highlightOffert ( 3 , { abbr : 'abc' , filterText : 'def' } )
90+ let n = highlightOffset ( 3 , { abbr : 'abc' , filterText : 'def' } )
9191 expect ( n ) . toBe ( - 1 )
92- expect ( highlightOffert ( 3 , { abbr : 'abc' , filterText : 'abc' } ) ) . toBe ( 3 )
93- expect ( highlightOffert ( 3 , { abbr : 'xy abc' , filterText : 'abc' } ) ) . toBe ( 6 )
92+ expect ( highlightOffset ( 3 , { abbr : 'abc' , filterText : 'abc' } ) ) . toBe ( 3 )
93+ expect ( highlightOffset ( 3 , { abbr : 'xy abc' , filterText : 'abc' } ) ) . toBe ( 6 )
9494 } )
9595
9696 it ( 'should getKindText' , ( ) => {
0 commit comments