ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / extensions / copilot / test / inline / fixing.stest.ts 2031 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
import assert from 'assert' ;
import { Intent } from '../../src/extension/common/constants' ;
import '../../src/extension/intents/node/allIntents' ;
import { ssuite, stest } from '../base/stest' ;
import { KnownDiagnosticProviders } from '../simulation/diagnosticProviders' ;
import { forInlineChatIntent, simulateInlineChatWithStrategy } from '../simulation/inlineChatSimulator' ;
import { assertLessDiagnosticsAsync, assertNoDiagnosticsAsync, getWorkspaceDiagnostics } from '../simulation/outcomeValidators' ;
import { assertConversationalOutcome, assertInlineEdit assertNoOccurrence assertOccursOnce fromFixture toFile
strategy nonExtensionConfigurations suffix
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
outcome type
indexOfFsImport outcome fileContents
assert indexOfFsImport
indexOfDeclare outcome fileContents
assert indexOfFsImport indexOfDeclare
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
assert outcome type
diagnostics accessor workspace
filtered diagnostics d d code d code
assert filtered length
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
outcome
match outcome chatResponseMarkdown
assert match
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
outcome type
match outcome chatResponseMarkdown
assert match
outcome type
diagnostics accessor workspace
filtered diagnostics d d code d code
assert filtered length
assert
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
outcome type
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
files
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
files
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
diagnostics
expectedIntent
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
fileName
fileContents
queries
file
selection
query
diagnostics
expectedIntent
outcome workspace accessor
outcome
accessor outcome workspace KnownDiagnosticProviders tscIgnoreImportErrors
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations accessor
strategy accessor
files
filePath
queries
file
selection
query
diagnostics
expectedIntent
outcome workspace accessor
outcome
outcome fileContents
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor
assert outcome type
outcome fileContents
accessor outcome workspace
title subtitle location
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
description language nonExtensionConfigurations testingServiceCollection
strategy testingServiceCollection
files
queries
file
selection
query
expectedIntent Intent Fix
diagnostics
outcome workspace accessor accessor outcome workspace
title subtitle location
description language nonExtensionConfigurations accessor
strategy accessor
files
filePath
queries
file
selection
query
expectedIntent
outcome workspace
outcome
newText outcome appliedEdits e e newText
assert newText
,
,
,
,
}
from
'../simulation/stestUtil'
;
forInlineChatIntent
(
(
,
,
)
=>
{
ssuite
(
{
:
` fix ${ suffix} `
,
:
'ruff'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
` Ruff(E231) Missing whitespace after ':' `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/ruff/ruff_error_E231.py'
)
]
,
:
[
{
:
'ruff_error_E231.py'
,
:
[
5
,
1
,
5
,
10
]
,
:
[
` /fix Missing whitespace after ':' `
,
` To fix the problem. `
]
.
join
(
'\n'
)
,
:
.
,
:
'ruff'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'ruff'
)
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'TSC'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'Error 2322 - type undefined is not assignable to type'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2322.ts'
)
]
,
:
[
{
:
'tsc_error_2322.ts'
,
:
[
37
,
10
,
37
,
10
]
,
:
[
` /fix Type 'RangeMapping[] | undefined' is not assignable to type 'RangeMapping[]'. `
,
` Type 'undefined' is not assignable to type 'RangeMapping[]'. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'22222 Error 2322 - type undefined is not assignable to type'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2322.ts'
)
]
,
:
[
{
:
'tsc_error_2322.ts'
,
:
[
37
,
10
,
37
,
10
]
,
:
[
` /fix Type 'RangeMapping[] | undefined' is not assignable to type 'RangeMapping[]'. `
,
` Type 'undefined' is not assignable to type 'RangeMapping[]'. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 1015 - parameter cannot have question mark and initializer, with corresponding diagnostics'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_1015.ts'
)
]
,
:
[
{
:
'tsc_error_1015.ts'
,
:
[
0
,
24
,
0
,
24
]
,
:
` /fix Parameter cannot have question mark and initializer. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 1015 - parameter cannot have question mark and initializer, without corresponding diagnostics'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_1015.ts'
)
]
,
:
[
{
:
'tsc_error_1015.ts'
,
:
[
0
,
24
,
0
,
24
]
,
:
` /fix Parameter cannot have question mark and initializer. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2420 - incorrect interface implementation'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2420/file0.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2420/file1.ts'
)
]
,
:
[
{
:
'file0.ts'
,
:
[
2
,
6
,
2
,
6
]
,
:
[
` /fix Class 'Far' incorrectly implements interface 'IFar'. `
,
` Property 'foo' is missing in type 'Far' but required in type 'IFar'. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2420 - incorrect interface implementation, with related information'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2420/file0.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2420/file1.ts'
)
]
,
:
[
{
:
'file0.ts'
,
:
[
2
,
6
,
9
,
1
]
,
:
[
` /fix Class 'Far' incorrectly implements interface 'IFar'. `
,
` Property 'foo' is missing in type 'Far' but required in type 'IFar'. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2391 - function implementation is missing or not immediately following the declaration'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2391.ts'
)
]
,
:
[
{
:
'tsc_error_2391.ts'
,
:
[
6
,
4
,
6
,
13
]
,
:
[
` /fix Function implementation is missing or not immediately following the declaration. `
,
` 'function1', which lacks return-type annotation, implicitly has an 'any' return type. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2454 - variable is used before being assigned'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2454.ts'
)
]
,
:
[
{
:
'tsc_error_2454.ts'
,
:
[
21
,
6
,
21
,
24
]
,
:
` /fix Variable 'telemetryEventName' is used before being assigned. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2339 - property does not exist on type 1'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2339_1.ts'
)
]
,
:
[
{
:
'tsc_error_2339_1.ts'
,
:
[
16
,
21
,
16
,
29
]
,
:
` /fix Property 'response' does not exist on type 'DocContext'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2554 - expected m arguments, but got n.'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2554.ts'
)
]
,
:
[
{
:
'tsc_error_2554.ts'
,
:
[
8
,
7
,
8
,
21
]
,
:
` /fix Expected 1 arguments, but got 0. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2341 - property is private and only accessible within class'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2341.ts'
)
]
,
:
[
{
:
'tsc_error_2341.ts'
,
:
[
7
,
8
,
7
,
10
]
,
:
` /fix Property 'hi' is private and only accessible within class 'Bar'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2355 - a function whose declared type is neither undefined, void, nor any must return a value.'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2355.ts'
)
]
,
:
[
{
:
'tsc_error_2355.ts'
,
:
[
2
,
37
,
2
,
44
]
,
:
` /fix A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2339 - (AML-10-55) property does not exist on type 2'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2339_2.ts'
)
]
,
:
[
{
:
'tsc_error_2339_2.ts'
,
:
[
5
,
8
,
5
,
8
]
,
:
` /fix Property 'send' does not exist on type 'AutoUpdater'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2339 - (AML-10-98) property does not exist on type 3'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2339_3.ts'
)
]
,
:
[
{
:
'tsc_error_2339_3.ts'
,
:
[
65
,
11
,
65
,
11
]
,
:
` /fix Property 'send' does not exist on type 'IpcRendererWithCommands'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2304 - can not find name'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2304/file0.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2304/file1.ts'
)
]
,
:
[
{
:
'file0.ts'
,
:
[
10
,
26
,
10
,
26
]
,
:
` /fix Cannot find name 'readFileSync'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
if
(
.
===
'inlineEdit'
)
{
const
=
.
.
indexOf
(
` import { readFileSync } from 'fs'; `
)
;
.
ok
(
>=
0
,
'contains readFileSync import'
)
;
const
=
.
.
indexOf
(
` declare function `
)
;
.
ok
(
<
,
'is before declare function'
)
;
}
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2304 - (AML-10-14) can not find module'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2304_1.ts'
)
]
,
:
[
{
:
'tsc_error_2304_1.ts'
,
:
[
25
,
1
,
25
,
1
]
,
:
` /fix Cannot find name 'expect'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
.
strictEqual
(
.
,
'inlineEdit'
)
;
const
=
await
getWorkspaceDiagnostics
(
,
,
'tsc'
)
;
const
=
.
filter
(
=>
.
!==
2307
&&
.
!==
2305
)
;
.
equal
(
.
,
0
,
'only module not found diagnostics'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2307 - can not find module'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2307_can_not_find_module.ts'
)
]
,
:
[
{
:
'tsc_error_2307_can_not_find_module.ts'
,
:
[
0
,
25
,
0
,
40
]
,
:
[
` /fix Cannot find module '@angular/core' or its corresponding type declarations.. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
assertConversationalOutcome
(
)
;
const
=
.
.
match
(
/ ```( ps| bash) [ .\n \r ] * npm install. * @angular\/ core /
)
;
.
ok
(
,
'contains npm install @angular/core'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 18047 - (AML-10-64) possibly null'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_18047.ts'
)
]
,
:
[
{
:
'tsc_error_18047.ts'
,
:
[
4
,
4
,
4
,
4
]
,
:
` /fix 'measurementSpan' is possibly 'null'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 7006 - (AML-10-23) implicitly has any type'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_7006.ts'
)
]
,
:
[
{
:
'tsc_error_7006.ts'
,
:
[
1
,
53
,
1
,
53
]
,
:
` /fix Parameter 'data' implicitly has an 'any' type. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 18047 - (AML-8-1) property does not exist on type window'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2339_4.ts'
)
]
,
:
[
{
:
'tsc_error_2339_4.ts'
,
:
[
1
,
12
,
1
,
12
]
,
:
` /fix Property 'lx' does not exist on type 'Window & typeof globalThis'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 18048 - (AML-10-86) possibly undefined'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_18048.ts'
)
]
,
:
[
{
:
'tsc_error_18048.ts'
,
:
[
3
,
20
,
3
,
20
]
,
:
` /fix 'poppedElement' is possibly 'undefined' `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2304 - (AML-8-125) can not find name'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2304_2.ts'
)
]
,
:
[
{
:
'tsc_error_2304_2.ts'
,
:
[
7
,
2
,
7
,
2
]
,
:
` /fix Cannot find name 'cy'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
if
(
.
===
'conversational'
)
{
const
=
.
.
match
(
/ ```( ps| bash) [ .\n \r ] * npm install. * cypress /
)
;
.
ok
(
,
'contains npm install cypress'
)
;
}
else
if
(
.
===
'inlineEdit'
)
{
const
=
await
getWorkspaceDiagnostics
(
,
,
'tsc'
)
;
const
=
.
filter
(
=>
.
!==
2307
&&
.
!==
2305
)
;
.
equal
(
.
,
0
,
'only module not found diagnostics'
)
;
}
else
{
.
fail
(
'unexpected outcome type'
)
;
}
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2304 - (AML-8-125) can not find name 2'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2304_3.ts'
)
]
,
:
[
{
:
'tsc_error_2304_3.ts'
,
:
[
1
,
10
,
1
,
10
]
,
:
` /fix Cannot find name 'promises'. Did you mean 'Promise'?. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` Error 7053 - (AML-10-25) expression of type can't be used to index `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_7053.ts'
)
]
,
:
[
{
:
'tsc_error_7053.ts'
,
:
[
9
,
2
,
9
,
2
]
,
:
[
` /fix Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ Pi: number; PiTimes2: number; PiOn2: number; PiOn4: number; E: number; }. `
,
` No index signature with a parameter of type 'string' was found on type '{ Pi: number; PiTimes2: number; PiOn2: number; PiOn4: number; E: number; }'. `
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-31) Parameter data implicitly has an any type.'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_implicit_any.ts'
)
]
,
:
[
{
:
'tsc_implicit_any.ts'
,
:
[
7
,
38
,
7
,
42
]
,
:
` /fix Parameter 'data' implicitly has an 'any' type `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'declaration or statement expected'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_1128.ts'
)
]
,
:
[
{
:
'tsc_error_1128.ts'
,
:
[
8
,
0
,
8
,
1
]
,
:
` /fix Declaration or statement expected. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'left side of comma operator is unused'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2695.ts'
)
]
,
:
[
{
:
'tsc_error_2695.ts'
,
:
[
3
,
9
,
3
,
10
]
,
:
` /fix Left side of comma operator is unused and has no side effects. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'object is possibly undefined'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2532.ts'
)
]
,
:
[
{
:
'tsc_error_2532.ts'
,
:
[
2
,
12
,
2
,
15
]
,
:
` /fix 'obj' is possibly 'undefined'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'duplicate identifier'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2300.ts'
)
]
,
:
[
{
:
'tsc_error_2300.ts'
,
:
[
1
,
6
,
1
,
13
]
,
:
` /fix Duplicate identifier 'MyArray'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2802 - large file - Type Uint32Array can only be iterated through'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_large_onigscanner/tsc_error_2802.ts'
)
]
,
:
[
{
:
'tsc_error_2802.ts'
,
:
[
442
,
16
,
454
,
10
]
,
:
` /fix Type 'Uint32Array' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
if
(
.
===
'conversational'
)
{
}
else
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
}
]
}
)
;
}
)
;
stest
(
{
:
'can not assign to parameter of type'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2345.ts'
)
]
,
:
[
{
:
'tsc_error_2345.ts'
,
:
[
1
,
22
,
1
,
31
]
,
:
` /fix Argument of type 'T' is not assignable to parameter of type 'object | null'. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
{
await
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
;
}
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2345 - Last two arguments swapped'
,
:
'typescript'
,
}
,
(
)
=>
{
const
=
[
fromFixture
(
'fixing/typescript/tsc_error_2345_2/file0.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2345_2/file1.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2345_2/database_mock.ts'
)
]
;
return
simulateInlineChatWithStrategy
(
,
,
{
,
:
[
{
:
'file0.ts'
,
:
[
3
,
35
,
3
,
40
]
,
:
[
` /fix Argument of type 'boolean' is not assignable to parameter of type 'number'. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2345 - Got boolean but expected options bag'
,
:
'typescript'
,
}
,
(
)
=>
{
const
=
[
fromFixture
(
'fixing/typescript/tsc_error_2345_3/file0.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2345_3/database_mock.ts'
)
]
;
return
simulateInlineChatWithStrategy
(
,
,
{
,
:
[
{
:
'file0.ts'
,
:
[
3
,
41
,
3
,
46
]
,
:
[
` /fix Argument of type 'boolean' is not assignable to parameter of type '{ timeout?: number | undefined; loose: boolean; }'. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Error 2554 - Got two args but expected options bag'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/tsc_error_2554/legacy_database.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2554/file1.ts'
)
,
fromFixture
(
'fixing/typescript/tsc_error_2554/database_mock.ts'
)
]
,
:
[
{
:
'legacy_database.ts'
,
:
[
9
,
37
,
9
,
42
]
,
:
` /fix Expected 1-2 arguments, but got 3. `
,
:
.
,
:
'tsc'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Issue 6571'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/inlineChatSimulator.ts'
)
]
,
:
[
{
:
'inlineChatSimulator.ts'
,
:
[
302
,
16
,
302
,
27
]
,
:
` /fix Cannot find name 'startOffset'. `
,
:
'tsc'
,
:
'fix'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'tsc'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Issue #7300'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
toFile
(
{
:
'textureAtlasAllocator.test.ts'
,
:
` /*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport { deepStrictEqual, strictEqual } from 'assert';\r\nimport { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';\r\nimport { TextureAtlasShelfAllocator } from 'vs/editor/browser/view/gpu/atlas/textureAtlasAllocator';\r\nimport { ensureNonNullable } from 'vs/editor/browser/view/gpu/gpuUtils';\r\nimport type { IRasterizedGlyph } from 'vs/editor/browser/view/gpu/raster/glyphRasterizer';\r\n\r\nconst blackInt = 0x000000FF;\r\nconst blackArr = [0x00, 0x00, 0x00, 0xFF];\r\n\r\nconst pixel1x1 = createRasterizedGlyph(1, 1, [...blackArr]);\r\nconst pixel2x1 = createRasterizedGlyph(2, 1, [...blackArr, ...blackArr]);\r\nconst pixel1x2 = createRasterizedGlyph(1, 2, [...blackArr, ...blackArr]);\r\n\r\nfunction initAllocator(w: number, h: number): { canvas: OffscreenCanvas; ctx: OffscreenCanvasRenderingContext2D; allocator: TextureAtlasShelfAllocator } {\r\n\tconst canvas = new OffscreenCanvas(w, h);\r\n\tconst ctx = ensureNonNullable(canvas.getContext('2d'));\r\n\tconst allocator = new TextureAtlasShelfAllocator(canvas, ctx);\r\n\treturn { canvas, ctx, allocator };\r\n}\r\n\r\nfunction createRasterizedGlyph(w: number, h: number, data: ArrayLike<number>): IRasterizedGlyph {\r\n\tstrictEqual(w * h * 4, data.length);\r\n\tconst source = new OffscreenCanvas(w, h);\r\n\tconst imageData = new ImageData(w, h);\r\n\timageData.data.set(data);\r\n\tensureNonNullable(source.getContext('2d')).putImageData(imageData, 0, 0);\r\n\treturn {\r\n\t\tsource,\r\n\t\tboundingBox: { top: 0, left: 0, bottom: h - 1, right: w - 1 },\r\n\t\toriginOffset: { x: 0, y: 0 },\r\n\t};\r\n}\r\n\r\nsuite('TextureAtlasShelfAllocator', () => {\r\n\tensureNoDisposablesAreLeakedInTestSuite();\r\n\r\n\tlet lastUniqueGlyph: string | undefined;\r\n\tfunction getUniqueGlyphId(): [string, number] {\r\n\t\tif (!lastUniqueGlyph) {\r\n\t\t\tlastUniqueGlyph = 'a';\r\n\t\t} else {\r\n\t\t\tlastUniqueGlyph = String.fromCharCode(lastUniqueGlyph.charCodeAt(0) + 1);\r\n\t\t}\r\n\t\treturn [lastUniqueGlyph, blackInt];\r\n\t}\r\n\r\n\tsuiteSetup(() => {\r\n\t\tlastUniqueGlyph = undefined;\r\n\t});\r\n\r\n\ttest('single allocation', () => {\r\n\t\tconst { allocator } = initAllocator(2, 2);\r\n\t\t// 1o\r\n\t\t// oo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x1), {\r\n\t\t\tindex: 0,\r\n\t\t\tx: 0, y: 0,\r\n\t\t\tw: 1, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t});\r\n\ttest('wrapping', () => {\r\n\t\tconst { allocator } = initAllocator(5, 4);\r\n\t\t// 1oooo\r\n\t\t// ooooo\r\n\t\t// ooooo\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x1), {\r\n\t\t\tindex: 0,\r\n\t\t\tx: 0, y: 0,\r\n\t\t\tw: 1, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 12ooo\r\n\t\t// o2ooo\r\n\t\t// ooooo\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x2), {\r\n\t\t\tindex: 1,\r\n\t\t\tx: 1, y: 0,\r\n\t\t\tw: 1, h: 2,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 1233o\r\n\t\t// o2ooo\r\n\t\t// ooooo\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel2x1), {\r\n\t\t\tindex: 2,\r\n\t\t\tx: 2, y: 0,\r\n\t\t\tw: 2, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 1233x\r\n\t\t// x2xxx\r\n\t\t// 44ooo\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel2x1), {\r\n\t\t\tindex: 3,\r\n\t\t\tx: 0, y: 2,\r\n\t\t\tw: 2, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t}, 'should wrap to next line as there\\'s no room left');\r\n\t\t// 1233x\r\n\t\t// x2xxx\r\n\t\t// 4455o\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel2x1), {\r\n\t\t\tindex: 4,\r\n\t\t\tx: 2, y: 2,\r\n\t\t\tw: 2, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 1233x\r\n\t\t// x2xxx\r\n\t\t// 44556\r\n\t\t// ooooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x1), {\r\n\t\t\tindex: 5,\r\n\t\t\tx: 4, y: 2,\r\n\t\t\tw: 1, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 1233x\r\n\t\t// x2xxx\r\n\t\t// 44556\r\n\t\t// 7oooo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x1), {\r\n\t\t\tindex: 6,\r\n\t\t\tx: 0, y: 3,\r\n\t\t\tw: 1, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t}, 'should wrap to next line as there\\'s no room left');\r\n\t});\r\n\ttest('full', () => {\r\n\t\tconst { allocator } = initAllocator(3, 2);\r\n\t\t// 1oo\r\n\t\t// 1oo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x2), {\r\n\t\t\tindex: 0,\r\n\t\t\tx: 0, y: 0,\r\n\t\t\tw: 1, h: 2,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\t// 122\r\n\t\t// 1oo\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel2x1), {\r\n\t\t\tindex: 1,\r\n\t\t\tx: 1, y: 0,\r\n\t\t\tw: 2, h: 1,\r\n\t\t\toriginOffsetX: 0, originOffsetY: 0,\r\n\t\t});\r\n\t\tdeepStrictEqual(allocator.allocate(...getUniqueGlyphId(), pixel1x1), undefined, 'should return undefined when the canvas is full');\r\n\t});\r\n});\r\n\r\nsuite('TextureAtlasSlabAllocator', () => {\r\n\ttest('a', () => {\r\n\t});\r\n});\r\n `
}
)
]
,
:
[
{
:
'textureAtlasAllocator.test.ts'
,
:
[
161
,
0
,
164
,
2
]
,
:
'/fix Suites should include a call to `ensureNoDisposablesAreLeakedInTestSuite()` to ensure no disposables are leaked in tests.'
,
:
'tsc'
,
:
'fix'
,
validate
:
async
(
,
,
)
=>
{
assertInlineEdit
(
)
;
await
assertNoDiagnosticsAsync
(
,
,
,
.
)
;
}
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'eslint'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'unexpected token'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_unexpected_token.ts'
)
]
,
:
[
{
:
'eslint_unexpected_token.ts'
,
:
[
14
,
4
,
14
,
4
]
,
:
` /fix Parsing error: Expression expected. `
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-52) expected conditional expression'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_expected_conditional_expression.ts'
)
]
,
:
[
{
:
'eslint_expected_conditional_expression.ts'
,
:
[
8
,
6
,
8
,
6
]
,
:
` /fix `
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-1) do not access hasOwnProperty'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_do_not_access_hasOwnProperty.ts'
)
]
,
:
[
{
:
'eslint_do_not_access_hasOwnProperty.ts'
,
:
[
9
,
23
,
9
,
23
]
,
:
` /fix Do not access Object.prototype method 'hasOwnProperty' from target object. `
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` comma expected `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_comma_expected.ts'
)
]
,
:
[
{
:
'eslint_comma_expected.ts'
,
:
[
8
,
2
,
8
,
2
]
,
:
[
` /fix Parsing error: ',' expected. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` (AML-17-10) unexpected constant condition 1 `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_unexpected_constant_condition_1.ts'
)
]
,
:
[
{
:
'eslint_unexpected_constant_condition_1.ts'
,
:
[
1
,
4
,
1
,
4
]
,
:
[
` /fix Unexpected constant condition. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` (AML-17-152) unreachable code `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_unreachable_code.ts'
)
]
,
:
[
{
:
'eslint_unreachable_code.ts'
,
:
[
5
,
3
,
5
,
3
]
,
:
[
` /fix Unreachable code. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` (AML-17-166) unexpected control character `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_unexpected_control_character.ts'
)
]
,
:
[
{
:
'eslint_unexpected_control_character.ts'
,
:
[
0
,
11
,
0
,
11
]
,
:
[
` /fix Unexpected control character(s) in regular expression: \\x00. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` (AML-17-243) unexpected constant condition 2 `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_unexpected_constant_condition_2.ts'
)
]
,
:
[
{
:
'eslint_unexpected_constant_condition_2.ts'
,
:
[
4
,
9
,
4
,
9
]
,
:
[
` /fix Unexpected constant condition. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` class-methods-use-this with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_class_methods_use_this.ts'
)
]
,
:
[
{
:
'eslint_class_methods_use_this.ts'
,
:
[
14
,
1
,
14
,
7
]
,
:
[
` /fix Expected 'this' to be used by class method 'append'. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` consistent-this with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_consistent_this.ts'
)
]
,
:
[
{
:
'eslint_consistent_this.ts'
,
:
[
8
,
8
,
8
,
19
]
,
:
[
` /fix Unexpected alias 'self' for 'this'. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` constructor-super with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_constructor_super.ts'
)
]
,
:
[
{
:
'eslint_constructor_super.ts'
,
:
[
22
,
1
,
25
,
2
]
,
:
[
` /fix Expected to call 'super()'. `
,
` Constructors for derived classes must contain a 'super' call. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` func-names with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_func_names.ts'
)
]
,
:
[
{
:
'eslint_func_names.ts'
,
:
[
4
,
25
,
4
,
34
]
,
:
[
` /fix Unexpected unnamed function. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` func-style with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_func_style.ts'
)
]
,
:
[
{
:
'eslint_func_style.ts'
,
:
[
4
,
7
,
10
,
1
]
,
:
[
` /fix Expected a function expression. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` max-lines-per-function with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_max_lines_per_function.ts'
)
]
,
:
[
{
:
'eslint_max_lines_per_function.ts'
,
:
[
4
,
7
,
58
,
1
]
,
:
[
` /fix Function 'fastMark' has too many lines (55). Maximum allowed is 50. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` max-params with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_max_params.ts'
)
]
,
:
[
{
:
'eslint_max_params.ts'
,
:
[
10
,
1
,
10
,
12
]
,
:
[
` /fix Constructor has too many parameters (5). Maximum allowed is 3. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` max-statements with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_max_statements.ts'
)
]
,
:
[
{
:
'eslint_max_statements.ts'
,
:
[
5
,
7
,
59
,
1
]
,
:
[
` /fix Function 'fastMark' has too many statements (34). Maximum allowed is 10. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-case-declarations with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_case_declarations.ts'
)
]
,
:
[
{
:
'eslint_no_case_declarations.ts'
,
:
[
9
,
3
,
9
,
61
]
,
:
[
` /fix Unexpected lexical declaration in case block. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-dupe-else-if with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_dupe_else_if.ts'
)
]
,
:
[
{
:
'eslint_no_dupe_else_if.ts'
,
:
[
11
,
13
,
11
,
34
]
,
:
[
` /fix This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-duplicate-case with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_duplicate_case.ts'
)
]
,
:
[
{
:
'eslint_no_duplicate_case.ts'
,
:
[
20
,
1
,
21
,
137
]
,
:
[
` /fix Please fix the problem at the location `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-duplicate-imports with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_duplicate_imports.ts'
)
]
,
:
[
{
:
'eslint_no_duplicate_imports.ts'
,
:
[
7
,
0
,
7
,
55
]
,
:
[
` /fix './eslint_no_duplicate_case'' import is duplicated. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-fallthrough with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_fallthrough.ts'
)
]
,
:
[
{
:
'eslint_no_fallthrough.ts'
,
:
[
9
,
2
,
9
,
9
]
,
:
[
` /fix Expected a 'break' statement before 'case'. `
,
` Constructors for derived classes must contain a 'super' call. `
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-inner-declarations with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_inner_declarations.ts'
)
]
,
:
[
{
:
'eslint_no_inner_declarations.ts'
,
:
[
11
,
2
,
15
,
3
]
,
:
[
` /fix Move function declaration to function body root. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-multi-assign with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_multi_assign.ts'
)
]
,
:
[
{
:
'eslint_no_multi_assign.ts'
,
:
[
10
,
8
,
10
,
8
]
,
:
[
` /fix Unexpected chained assignment. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-negated-condition with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_negated_condition.ts'
)
]
,
:
[
{
:
'eslint_no_negated_condition.ts'
,
:
[
8
,
8
,
8
,
53
]
,
:
[
` /fix Unexpected negated condition. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-negated-condition 2 with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_negated_condition_2.ts'
)
]
,
:
[
{
:
'eslint_no_negated_condition_2.ts'
,
:
[
6
,
2
,
11
,
3
]
,
:
[
` /fix Unexpected negated condition. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-new with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_new.ts'
)
]
,
:
[
{
:
'eslint_no_new.ts'
,
:
[
38
,
0
,
38
,
30
]
,
:
[
` /fix Please fix the problem at the location `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-sequences with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_sequences.ts'
)
]
,
:
[
{
:
'eslint_no_sequences.ts'
,
:
[
16
,
26
,
16
,
27
]
,
:
[
` /fix Please fix the problem at the location `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-sparse-arrays with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_sparse_arrays.ts'
)
]
,
:
[
{
:
'eslint_no_sparse_arrays.ts'
,
:
[
4
,
25
,
4
,
30
]
,
:
[
` /fix Unexpected comma in middle of array. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-sparse-arrays 2 with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_sparse_arrays_2.ts'
)
]
,
:
[
{
:
'eslint_no_sparse_arrays_2.ts'
,
:
[
4
,
29
,
4
,
66
]
,
:
[
` /fix Unexpected comma in middle of array. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` no-sparse-arrays 3 with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_no_sparse_arrays_3.ts'
)
]
,
:
[
{
:
'eslint_no_sparse_arrays_3.ts'
,
:
[
4
,
26
,
4
,
56
]
,
:
[
` /fix Unexpected comma in middle of array. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` require-await with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_require_await.ts'
)
]
,
:
[
{
:
'eslint_require_await.ts'
,
:
[
6
,
7
,
6
,
32
]
,
:
[
` /fix Async function 'readConfig' has no 'await' expression. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` sort-keys with cookbook `
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/typescript/eslint_sort_keys.ts'
)
]
,
:
[
{
:
'eslint_sort_keys.ts'
,
:
[
21
,
2
,
21
,
10
]
,
:
[
` /fix Expected object keys to be in ascending order. 'extended' should be before 'value'. `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'eslint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'eslint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Issue #7544'
,
:
'typescript'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
toFile
(
{
:
fromFixture
(
'fix/issue-7544/notebookMulticursor.ts'
)
}
)
]
,
:
[
{
:
'notebookMulticursor.ts'
,
:
[
262
,
41
,
262
,
41
]
,
:
'fix the error'
,
:
'tsc'
,
:
'fix'
,
validate
:
async
(
,
,
)
=>
{
assertInlineEdit
(
)
;
assertOccursOnce
(
.
,
'\tundoRedo?: {\n\t\telements: IPastFutureElements;\n\t};'
)
;
}
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'pylint'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'unecessary parenthesis'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_unecessary_parenthesis.py'
)
]
,
:
[
{
:
'pylint_unecessary_parenthesis.py'
,
:
[
7
,
0
,
7
,
0
]
,
:
` /fix Unnecessary parens after 'if' keyword `
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'unused module imported'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_unused_import.py'
)
]
,
:
[
{
:
'pylint_unused_import.py'
,
:
[
0
,
0
,
0
,
0
]
,
:
` /fix Unused Path imported from pathlib `
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` line-too-long cookbook 1 function definition with long parameters `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_line_too_long_1.py'
)
]
,
:
[
{
:
'pylint_line_too_long_1.py'
,
:
[
8
,
0
,
8
,
2
]
,
:
[
` /fix `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` line-too-long cookbook 2 long print statememt `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_line_too_long_2.py'
)
]
,
:
[
{
:
'pylint_line_too_long_2.py'
,
:
[
7
,
0
,
7
,
0
]
,
:
[
` /fix `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` line-too-long cookbook 3 long dictionary / list `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_line_too_long_3.py'
)
]
,
:
[
{
:
'pylint_line_too_long_3.py'
,
:
[
8
,
0
,
8
,
0
]
,
:
[
` /fix `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` line-too-long cookbook 4 long if condition and function call `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_line_too_long_4.py'
)
]
,
:
[
{
:
'pylint_line_too_long_4.py'
,
:
[
15
,
0
,
15
,
2
]
,
:
[
` /fix `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
stest
(
{
:
` line-too-long cookbook 5 multi-line docstring `
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pylint_line_too_long_5.py'
)
]
,
:
[
{
:
'pylint_line_too_long_5.py'
,
:
[
7
,
8
,
9
,
8
]
,
:
[
` /fix `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pylint'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pylint'
)
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'pyright'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'cannot instantiate abstract class'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_no_abstract_class_instantiation.py'
)
]
,
:
[
{
:
'pyright_no_abstract_class_instantiation.py'
,
:
[
9
,
4
,
9
,
4
]
,
:
` /fix Cannot instantiate abstract class "Base"\n "Base.foo" is abstract `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'all Annotated types should include at least two type arguments'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_annotated_types_missing_argument.py'
)
]
,
:
[
{
:
'pyright_annotated_types_missing_argument.py'
,
:
[
4
,
3
,
4
,
3
]
,
:
` /fix Expected one type argument and one or more annotations for "Annotated" `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'should not generate an error for variables declared in outer scopes'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_assignment_scopes.py'
)
]
,
:
[
{
:
'pyright_assignment_scopes.py'
,
:
[
24
,
8
,
24
,
8
]
,
:
` /fix "d" is not defined `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'async cannot be used in a non-async function'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_async_in_non_async_function.py'
)
]
,
:
[
{
:
'pyright_async_in_non_async_function.py'
,
:
[
17
,
4
,
17
,
4
]
,
:
` /fix Use of "async" not allowed outside of async function `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'await cannot be used in a non-async function'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_await_in_non_async_function.py'
)
]
,
:
[
{
:
'pyright_await_in_non_async_function.py'
,
:
[
14
,
0
,
14
,
0
]
,
:
` /fix "await" allowed only within async function `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'bad token'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_badtoken.py'
)
]
,
:
[
{
:
'pyright_badtoken.py'
,
:
[
4
,
7
,
4
,
7
]
,
:
` /fix Invalid character in identifier `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'Bar does not define a do_something2 method'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_missing_method.py'
)
]
,
:
[
{
:
'pyright_missing_method.py'
,
:
[
28
,
0
,
28
,
0
]
,
:
[
` /fix Cannot access member "do_something2" for type "Bar" `
,
` Member "do_something2" is unknown `
]
.
join
(
'\n'
)
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-2) can not be assigned 1'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_can_not_be_assigned_to_1.py'
)
]
,
:
[
{
:
'pyright_can_not_be_assigned_to_1.py'
,
:
[
13
,
15
,
13
,
15
]
,
:
[
` /fix Expression of type "tuple[str | None, Path]" cannot be assigned to return type "Tuple[str, Path] `
,
` Type "str | None" cannot be assigned to type "str" `
,
` Type "None" cannot be assigned to type "str" `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-15) object not subscriptable'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_object_not_subscriptable.py'
)
]
,
:
[
{
:
'pyright_object_not_subscriptable.py'
,
:
[
17
,
8
,
17
,
8
]
,
:
` /fix Object of type "None" is not subscriptable `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-35) can not access member'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_can_not_access_member.py'
)
]
,
:
[
{
:
'pyright_can_not_access_member.py'
,
:
[
2
,
23
,
2
,
23
]
,
:
[
` /fix Cannot access member "includes" for type "set[Unknown]" `
,
` Member "includes" is unknown `
]
.
join
(
'\n'
)
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-36) can not be assigned 2'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_can_not_be_assigned_to_2.py'
)
]
,
:
[
{
:
'pyright_can_not_be_assigned_to_2.py'
,
:
[
4
,
19
,
4
,
19
]
,
:
` /fix Expression of type "list[None]" cannot be assigned to declared type "List[int] | None" `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-4) parameter already assigned'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_parameter_already_assigned.py'
)
]
,
:
[
{
:
'pyright_parameter_already_assigned.py'
,
:
[
7
,
33
,
7
,
33
]
,
:
` /fix Parameter "input_shape" is already assigned `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-48) can not be assigned 3'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_can_not_be_assigned_to_3.py'
)
]
,
:
[
{
:
'pyright_can_not_be_assigned_to_3.py'
,
:
[
9
,
14
,
9
,
14
]
,
:
[
` /fix Argument of type "dict[str, int]" cannot be assigned to parameter "platforms" of type "list[str] | str" in function "setup" `
,
` Type "dict[str, int]" cannot be assigned to type "list[str] | str" `
,
` "dict[str, int]" is incompatible with "list[str]" `
,
` "dict[str, int]" is incompatible with "str" `
,
]
.
join
(
'\n'
)
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-58) not defined'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_not_defined.py'
)
]
,
:
[
{
:
'pyright_not_defined.py'
,
:
[
7
,
20
,
7
,
20
]
,
:
` /fix "T_Or" is not defined `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-29) instance of bool has no to_string member'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_no_to_string_member.py'
)
]
,
:
[
{
:
'pyright_no_to_string_member.py'
,
:
[
1
,
19
,
1
,
19
]
,
:
` /fix `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-8-110) not defined'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_self_as_first_argument.py'
)
]
,
:
[
{
:
'pyright_self_as_first_argument.py'
,
:
[
7
,
20
,
7
,
20
]
,
:
` /fix Instance methods should take a "self" parameter `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-8-73) no value for argument in function call'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_no_value_for_argument.py'
)
]
,
:
[
{
:
'pyright_no_value_for_argument.py'
,
:
[
12
,
16
,
12
,
16
]
,
:
` /fix Argument missing for parameter "error_message" `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'undefined variable'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_undefined_variable.py'
)
]
,
:
[
{
:
'pyright_undefined_variable.py'
,
:
[
0
,
0
,
0
,
4
]
,
:
` /fix "Play" is not defined `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'import missing'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_missing_import.py'
)
]
,
:
[
{
:
'pyright_missing_import.py'
,
:
[
3
,
26
,
3
,
34
]
,
:
` /fix "unittest" is not defined `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'general type issue'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_general_type_issue.py'
)
]
,
:
[
{
:
'pyright_general_type_issue.py'
,
:
[
29
,
22
,
29
,
25
]
,
:
[
` /fix Argument of type "Msg[Foo]" cannot be assigned to parameter "msg" of type "Msg[FooBar]" in function "handle" `
,
` "Msg[Foo]" is incompatible with "Msg[FooBar]" `
,
` Type parameter "T@Msg" is invariant, but "Foo" is not the same as "FooBar" `
]
.
join
(
'\n'
)
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'optional member access'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_optional_member_access.py'
)
]
,
:
[
{
:
'pyright_optional_member_access.py'
,
:
[
12
,
23
,
12
,
28
]
,
:
` /fix "upper" is not a known member of "None" `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'unbound variable'
,
:
'python'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/python/pyright_unbound_variable.py'
)
]
,
:
[
{
:
'pyright_unbound_variable.py'
,
:
[
4
,
11
,
4
,
12
]
,
:
` /fix "a" is possibly unbound `
,
:
.
,
:
'pyright'
,
validate
:
async
(
,
,
)
=>
assertNoDiagnosticsAsync
(
,
,
,
'pyright'
)
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'cpp'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'code fix for C++'
,
:
'cpp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/cpp/basic/main.cpp'
)
,
]
,
:
[
{
:
'main.cpp'
,
:
[
5
,
32
]
,
:
'/fix too few arguments in function call'
,
:
.
,
:
'cpp'
,
validate
:
async
(
,
,
)
=>
{
.
strictEqual
(
.
,
'inlineEdit'
)
;
assertNoOccurrence
(
.
,
'getName();'
)
;
await
assertLessDiagnosticsAsync
(
,
,
,
'cpp'
)
;
}
,
}
,
]
,
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'roslyn'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'(AML-10-28) field is never used'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_field_never_used.cs'
)
]
,
:
[
{
:
'roslyn_field_never_used.cs'
,
:
[
29
,
37
,
29
,
37
]
,
:
` /fix "The event 'Class3.event3' is never used" `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-10-57) call is not awaited, execution continues'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_call_not_awaited.cs'
)
]
,
:
[
{
:
'roslyn_call_not_awaited.cs'
,
:
[
5
,
12
,
5
,
12
]
,
:
` /fix Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'(AML-17-3523) has same name as'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_has_same_name_as.cs'
)
]
,
:
[
{
:
'roslyn_has_same_name_as.cs'
,
:
[
3
,
23
,
3
,
24
]
,
:
` /fix Type parameter 'W' has the same name as the type parameter from outer type 'Class1<T, U>.Class11<V, W, X, Y>'. `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'does not exist'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_does_not_exist.cs'
)
]
,
:
[
{
:
'roslyn_does_not_exist.cs'
,
:
[
3
,
26
,
3
,
32
]
,
:
` /fix The name 'mesage' does not exist in the current context `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'does not contain a definition'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_does_not_contain_definition_for.cs'
)
]
,
:
[
{
:
'roslyn_does_not_contain_definition_for.cs'
,
:
[
4
,
23
,
4
,
28
]
,
:
` /fix 'C' does not contain a definition for 'Field' `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'no argument given'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_no_argument_given.cs'
)
]
,
:
[
{
:
'roslyn_no_argument_given.cs'
,
:
[
6
,
19
,
6
,
20
]
,
:
` /fix There is no argument given that corresponds to the required parameter 'count' of 'C.C(int)' `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'missing using directive'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_missing_using_directive.cs'
)
]
,
:
[
{
:
'roslyn_missing_using_directive.cs'
,
:
[
2
,
5
,
2
,
16
]
,
:
` /fix The type or namespace name 'ConditionalAttribute' could not be found (are you missing a using directive or an assembly reference?) `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
stest
(
{
:
'semi-colon expected'
,
:
'csharp'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
fromFixture
(
'fixing/csharp/roslyn_semi_colon_expected.cs'
)
]
,
:
[
{
:
'roslyn_semi_colon_expected.cs'
,
:
[
4
,
11
,
4
,
11
]
,
:
` /fix ; expected `
,
:
.
,
:
'roslyn'
,
validate
:
async
(
,
,
)
=>
assertLessDiagnosticsAsync
(
,
,
,
'roslyn'
)
}
]
}
)
;
}
)
;
}
)
;
ssuite
(
{
:
` fix ${ suffix} `
,
:
'powershell'
,
:
'inline'
}
,
(
)
=>
{
stest
(
{
:
'Issue #7894'
,
:
'powershell'
,
}
,
(
)
=>
{
return
simulateInlineChatWithStrategy
(
,
,
{
:
[
toFile
(
{
:
fromFixture
(
'fix/issue-7894/shellIntegration.ps1'
)
}
)
]
,
:
[
{
:
'shellIntegration.ps1'
,
:
[
175
,
0
,
175
,
3
]
,
:
'[psscriptanalyzer:Error]: MissingEndCurlyBrace: MissingEndCurlyBrace (in fix/issue-7894/shellIntegration.ps1)'
,
:
'fix'
,
validate
:
async
(
,
)
=>
{
assertInlineEdit
(
)
;
const
=
.
.
map
(
=>
.
)
.
join
(
''
)
;
.
strictEqual
(
.
includes
(
'param'
)
,
true
)
;
}
}
]
}
)
;
}
)
;
}
)
;
}
)
;