Commit f243990
authored
fix(codewhisperer): auto-connect on vscode startup #3359
Problem:
CodeWhisperer does not auto-connect on vscode startup. #3348
Solution:
Call auth.restore()
Also fix some other issues:
1. Clear the inlineCompletionState on focus change so that
they should still be able to invoke CW when they invoked CW and then
switched to another app and switched back.
2. put activateCodeWhipserer() to be before activateAwsExplorer()
since the refreshStatusBar() and showReferenceLog() commands are used
within activateAwsExplorer() when the connection is changed. These
commands are not registered until activateCodeWhisperer() has been called.
3. Remove unnecessary call to refreshCodeWhisperer(), this only needs to be
called when there's a connection change.1 parent ea2d84c commit f243990
File tree
5 files changed
+4
-11
lines changed- src
- codewhisperer
- explorer
- service
- util
5 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 205 | + | |
209 | 206 | | |
210 | 207 | | |
211 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 37 | | |
42 | 38 | | |
43 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
220 | | - | |
221 | | - | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
0 commit comments