File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -563,6 +563,29 @@ describe('server', () => {
563
563
expect ( result && 'length' in result && result . length ) . toBeGreaterThanOrEqual ( 50 )
564
564
} )
565
565
566
+ it ( 'responds to onCompletion with empty list when the following characters is not an empty string or whitespace' , async ( ) => {
567
+ const { connection } = await initializeServer ( )
568
+
569
+ const onCompletion = connection . onCompletion . mock . calls [ 0 ] [ 0 ]
570
+
571
+ const result = await onCompletion (
572
+ {
573
+ textDocument : {
574
+ uri : FIXTURE_URI . INSTALL ,
575
+ } ,
576
+ position : {
577
+ // {
578
+ line : 271 ,
579
+ character : 21 ,
580
+ } ,
581
+ } ,
582
+ { } as any ,
583
+ { } as any ,
584
+ )
585
+
586
+ expect ( result ) . toEqual ( [ ] )
587
+ } )
588
+
566
589
it ( 'responds to onCompletion with empty list when word is a comment' , async ( ) => {
567
590
const { connection } = await initializeServer ( )
568
591
Original file line number Diff line number Diff line change @@ -268,3 +268,5 @@ if [ $ret -ne 0 ]; then
268
268
echo " It failed" >&2
269
269
fi
270
270
exit $ret
271
+
272
+ iverilog -i wave.vpp * {}.v
You can’t perform that action at this time.
0 commit comments