Commit 5a62292
* (maint) Add a logging interface
Previously the logging object had no interface which made testing difficult.
This commit adds a new interface which new features can use, which makes mocking
the logging object possible.
* (GH-1413) Update grammar parsing for vscode-textmate v4 module
VS Code 1.25 has updated the imported vsode-textmate module from v3 to v4, which
introduced some breaking changes. This commit updates the grammar loader;
* Uses a thenable grammar parser, as V4 of the module is all asynchronous
* Uses a simple method detection technique on the Registry object to determine
if we're using v3 or v4+ of the textmate module, and then branch the code
accordingly.
Note that this functionality can only be tested manually due to how the
vscode-textmate module is incorporated into VSCode and the test-suite.
* Update Folding.ts
Add newline between copyright header and body
1 parent 411b08a commit 5a62292
File tree
4 files changed
+48
-36
lines changed- src
- features
- test
- features
4 files changed
+48
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 501 | + | |
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
512 | 513 | | |
513 | | - | |
514 | | - | |
| 514 | + | |
| 515 | + | |
515 | 516 | | |
516 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
517 | 521 | | |
518 | 522 | | |
519 | 523 | | |
| |||
527 | 531 | | |
528 | 532 | | |
529 | 533 | | |
530 | | - | |
| 534 | + | |
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| |||
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
544 | 556 | | |
545 | 557 | | |
546 | 558 | | |
| |||
552 | 564 | | |
553 | 565 | | |
554 | 566 | | |
555 | | - | |
| 567 | + | |
556 | 568 | | |
557 | 569 | | |
558 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
20 | 32 | | |
21 | 33 | | |
22 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 5 | + | |
17 | 6 | | |
| 7 | + | |
18 | 8 | | |
19 | 9 | | |
20 | 10 | | |
| |||
28 | 18 | | |
29 | 19 | | |
30 | 20 | | |
31 | | - | |
32 | | - | |
33 | 21 | | |
0 commit comments