Commit fd22e54
committed
Moved CompletionIndex.load_completions call from init.
Moving this out is more modular, as CompletionIndex() is created in two places in the source: main and lexer (possible refactor TODO item). It's also called once in the tests. This change also simplifies testing as we can more easily substitute a mock function, although this could also probably be achieved with a mock side effect.1 parent 5adca9e commit fd22e54
File tree
3 files changed
+2
-1
lines changed- awsshell
- index
- tests/unit
3 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments