@@ -419,7 +419,7 @@ func TestDefinition(t *testing.T) {
419
419
{
420
420
name : "goto with overrides: clobber string" ,
421
421
filename : "testdata/goto-overrides.jsonnet" ,
422
- position : protocol.Position {Line : 38 , Character : 30 },
422
+ position : protocol.Position {Line : 39 , Character : 30 },
423
423
results : []definitionResult {{
424
424
targetRange : protocol.Range {
425
425
Start : protocol.Position {Line : 24 , Character : 4 },
@@ -434,7 +434,7 @@ func TestDefinition(t *testing.T) {
434
434
{
435
435
name : "goto with overrides: clobber nested string" ,
436
436
filename : "testdata/goto-overrides.jsonnet" ,
437
- position : protocol.Position {Line : 39 , Character : 44 },
437
+ position : protocol.Position {Line : 40 , Character : 44 },
438
438
results : []definitionResult {{
439
439
targetRange : protocol.Range {
440
440
Start : protocol.Position {Line : 26 , Character : 6 },
@@ -449,7 +449,7 @@ func TestDefinition(t *testing.T) {
449
449
{
450
450
name : "goto with overrides: clobber map" ,
451
451
filename : "testdata/goto-overrides.jsonnet" ,
452
- position : protocol.Position {Line : 40 , Character : 28 },
452
+ position : protocol.Position {Line : 41 , Character : 28 },
453
453
results : []definitionResult {{
454
454
targetRange : protocol.Range {
455
455
Start : protocol.Position {Line : 28 , Character : 4 },
@@ -496,6 +496,28 @@ func TestDefinition(t *testing.T) {
496
496
End : protocol.Position {Line : 2 , Character : 3 },
497
497
},
498
498
},
499
+ {
500
+ targetFilename : "testdata/goto-overrides-base.jsonnet" ,
501
+ targetRange : protocol.Range {
502
+ Start : protocol.Position {Line : 16 , Character : 2 },
503
+ End : protocol.Position {Line : 16 , Character : 24 },
504
+ },
505
+ targetSelectionRange : protocol.Range {
506
+ Start : protocol.Position {Line : 16 , Character : 2 },
507
+ End : protocol.Position {Line : 16 , Character : 3 },
508
+ },
509
+ },
510
+ {
511
+ targetFilename : "testdata/goto-overrides-base.jsonnet" ,
512
+ targetRange : protocol.Range {
513
+ Start : protocol.Position {Line : 1 , Character : 2 },
514
+ End : protocol.Position {Line : 7 , Character : 3 },
515
+ },
516
+ targetSelectionRange : protocol.Range {
517
+ Start : protocol.Position {Line : 1 , Character : 2 },
518
+ End : protocol.Position {Line : 1 , Character : 3 },
519
+ },
520
+ },
499
521
},
500
522
},
501
523
{
@@ -533,6 +555,28 @@ func TestDefinition(t *testing.T) {
533
555
End : protocol.Position {Line : 4 , Character : 11 },
534
556
},
535
557
},
558
+ {
559
+ targetFilename : "testdata/goto-overrides-base.jsonnet" ,
560
+ targetRange : protocol.Range {
561
+ Start : protocol.Position {Line : 12 , Character : 4 },
562
+ End : protocol.Position {Line : 14 , Character : 5 },
563
+ },
564
+ targetSelectionRange : protocol.Range {
565
+ Start : protocol.Position {Line : 12 , Character : 4 },
566
+ End : protocol.Position {Line : 12 , Character : 11 },
567
+ },
568
+ },
569
+ {
570
+ targetFilename : "testdata/goto-overrides-base.jsonnet" ,
571
+ targetRange : protocol.Range {
572
+ Start : protocol.Position {Line : 3 , Character : 4 },
573
+ End : protocol.Position {Line : 5 , Character : 5 },
574
+ },
575
+ targetSelectionRange : protocol.Range {
576
+ Start : protocol.Position {Line : 3 , Character : 4 },
577
+ End : protocol.Position {Line : 3 , Character : 11 },
578
+ },
579
+ },
536
580
},
537
581
},
538
582
{
0 commit comments