@@ -44,7 +44,7 @@ describe("AutoCompleteAdapter", () => {
4444 type getSuggestionParams = Parameters < typeof autoCompleteAdapter . getSuggestions >
4545
4646 /** Function that stubs `server.connection.completion` and returns the `autoCompleteAdapter.getSuggestions(...)` */
47- async function getSuggestionsMock (
47+ function getSuggestionsMock (
4848 items : CompletionItem [ ] ,
4949 request : getSuggestionParams [ 1 ] ,
5050 onDidConvertCompletionItem ?: getSuggestionParams [ 2 ] ,
@@ -288,7 +288,7 @@ describe("AutoCompleteAdapter", () => {
288288
289289 it ( "respects onDidConvertCompletionItem" , async ( ) => {
290290 const results = await getSuggestionsMock ( [ { label : "label" } ] , createRequest ( { } ) , ( c , a , r ) => {
291- ; ( a as ac . TextSuggestion ) . text = c . label + " ok"
291+ ; ( a as ac . TextSuggestion ) . text = ` ${ c . label } ok`
292292 a . displayText = r . scopeDescriptor . getScopesArray ( ) [ 0 ]
293293 } )
294294
@@ -448,7 +448,7 @@ describe("AutoCompleteAdapter", () => {
448448 expect ( result . replacementPrefix ) . equals ( "" )
449449 } )
450450
451- describe ( "applies changes from TextEdit to text" , async ( ) => {
451+ describe ( "applies changes from TextEdit to text" , ( ) => {
452452 const customRequest = createRequest ( { prefix : "" , position : new Point ( 0 , 10 ) } )
453453 customRequest . editor . setText ( "foo #align bar" )
454454
@@ -473,7 +473,7 @@ describe("AutoCompleteAdapter", () => {
473473 expect ( ( results [ 0 ] as TextSuggestion ) . customReplacmentPrefix ) . equals ( "#align" )
474474 } )
475475
476- describe ( "applies the change if shouldReplace is true" , async ( ) => {
476+ describe ( "applies the change if shouldReplace is true" , ( ) => {
477477 it ( "1" , async ( ) => {
478478 const results = await getSuggestionsMock (
479479 [
@@ -575,7 +575,7 @@ describe("AutoCompleteAdapter", () => {
575575 } )
576576 } )
577577
578- describe ( "applies the change if shouldReplace is false" , async ( ) => {
578+ describe ( "applies the change if shouldReplace is false" , ( ) => {
579579 it ( "1" , async ( ) => {
580580 const results = await getSuggestionsMock (
581581 [
0 commit comments