Commit e61ab96
authored
feat(core): Store codewhisperer customization in global state as single value and consume new authUtil (aws#7067)
## Problem
With the old VSCode auth, customization was stored in global state
(indexed by connection ID). With the new auth from the Flare identity
server, this no longer applies since there is only a single connection
## Solution
* Consume the new AuthUtil in the customizationUtil
* Change `CODEWHISPERER_SELECTED_CUSTOMIZATION` in the global state to
be a single value instead of a map
## Follow-up
Investigate if it's possible to hook up the customization to the Q
profile from the new Region Manager, so customizations are persisted
between different logins
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent f672c51 commit e61ab96
2 files changed
+59
-35
lines changedLines changed: 11 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 97 | + | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 101 | + | |
111 | 102 | | |
112 | 103 | | |
113 | 104 | | |
| |||
124 | 115 | | |
125 | 116 | | |
126 | 117 | | |
127 | | - | |
| 118 | + | |
128 | 119 | | |
129 | 120 | | |
130 | 121 | | |
| |||
133 | 124 | | |
134 | 125 | | |
135 | 126 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 127 | | |
144 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
145 | 131 | | |
146 | 132 | | |
147 | 133 | | |
| |||
150 | 136 | | |
151 | 137 | | |
152 | 138 | | |
153 | | - | |
| 139 | + | |
154 | 140 | | |
155 | 141 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 142 | + | |
162 | 143 | | |
163 | 144 | | |
164 | 145 | | |
165 | | - | |
| 146 | + | |
166 | 147 | | |
167 | 148 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 149 | + | |
| 150 | + | |
175 | 151 | | |
176 | 152 | | |
177 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
230 | 278 | | |
231 | 279 | | |
232 | 280 | | |
| |||
0 commit comments