Commit e4d02ca
authored
fix: delay copilot login check and avoid raising error (#4709)
There appears to be some issues with being too eager to check for the login.
The server may not have been properly initialized, which results in an error
being raised by lsp-copilot--authenticated-as. That seems to wreck havoc in
the call stack and leave lsp in a weird state -- there is a copilot server
running, there seems to be a client that can be restarted... but there is no
workspace registered ...
This change give some time for the server to spin up and avoids raising an
error if the authentication request did not work.1 parent cf5b97d commit e4d02ca
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
191 | | - | |
192 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
193 | 208 | | |
194 | 209 | | |
195 | 210 | | |
| |||
0 commit comments