Commit 8a642e5
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 <[email protected]>1 parent fdca5e1 commit 8a642e5
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
28 | 41 | | |
29 | 42 | | |
30 | 43 | | |
| |||
0 commit comments