Commit 8b58670
authored
fix(init): simplify lazy initialization logic (#1549)
Refactors the lazy initialization in the CopilotChat main module to call
the setup function directly and set the 'initialized' flag before
invocation. Removes the pcall error handling and logging, as setup
should not fail silently. This makes the initialization logic clearer
and more predictable.1 parent 969c220 commit 8b58670
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 25 | + | |
| 26 | + | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
0 commit comments