You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(amazonq): standardize reference type for reference log (#7311)
## Problem
References are not added to the reference log at the bottom. The root
cause is that the reference tracker log is expecting CW shaped
references, but we are passing "Flare" shaped ones.
## Solution
- Update the reference log to standardize the shape of incoming
references.
## Testing and Verification
- added unit test.
- Verified e2e:
https://github.com/user-attachments/assets/620f6f3d-1205-405e-96a2-322d5e8220c4
-
---
- 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.
@@ -144,3 +141,48 @@ export class ReferenceLogViewProvider implements vscode.WebviewViewProvider {
144
141
</html>`
145
142
}
146
143
}
144
+
145
+
/**
146
+
* Reference log needs to support references directly from CW, as well as those from Flare. These references have different shapes, so we standarize them here.
147
+
*/
148
+
typeGetInnerType<T>=Textends(infer U)[] ? U : never
0 commit comments