File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,30 @@ describe('server', () => {
316
316
expect ( result ) . toEqual ( [ ] )
317
317
} )
318
318
319
+ it ( 'responds to onCompletion with empty list when word is {' , async ( ) => {
320
+ const { connection, server } = await initializeServer ( )
321
+ server . register ( connection )
322
+
323
+ const onCompletion = connection . onCompletion . mock . calls [ 0 ] [ 0 ]
324
+
325
+ const result = await onCompletion (
326
+ {
327
+ textDocument : {
328
+ uri : FIXTURE_URI . ISSUE101 ,
329
+ } ,
330
+ position : {
331
+ // inside comment
332
+ line : 4 ,
333
+ character : 0 ,
334
+ } ,
335
+ } ,
336
+ { } as any ,
337
+ { } as any ,
338
+ )
339
+
340
+ expect ( result ) . toEqual ( [ ] )
341
+ } )
342
+
319
343
it ( 'responds to onCompletion when word is found in another file' , async ( ) => {
320
344
const { connection, server } = await initializeServer ( )
321
345
server . register ( connection )
You can’t perform that action at this time.
0 commit comments