Commit a96d9e6
committed
Handle snippets when opened (empty) Java file triggers activation.
- When extension is activated by opened empty Java source file, the
snippet insertion logic has yet to be registered so boilerplate type
declaration snippet cannot be applied
- Recover by detecting opened, active Java source file and create the
appropriate type declaration
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>1 parent fdca5e1 commit a96d9e6
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
580 | 592 | | |
581 | 593 | | |
582 | 594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments