-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge master into feature/q-transform-staging #4938
Merge master into feature/q-transform-staging #4938
Commits on May 6, 2024
-
fix(amazonq): ensure summary.md + icons saved, populate job history s…
…ooner, fix minor styling issues (#4928) * fix(amazonq): add jobId to history tab and ensure summary/icons get saved * update changelog * fix failing test * fix lint issue * fix circular dep * address comments * remove unneeded await * small fix to error notifications --------- Co-authored-by: David Hasani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e5f26e4 - Browse repository at this point
Copy the full SHA e5f26e4View commit details -
aws-toolkit-automation committed
May 6, 2024 Configuration menu - View commit details
-
Copy full SHA for 05b75ba - Browse repository at this point
Copy the full SHA 05b75baView commit details -
Update version to snapshot version: 3.3.0-SNAPSHOT
aws-toolkit-automation committedMay 6, 2024 Configuration menu - View commit details
-
Copy full SHA for 88a81d2 - Browse repository at this point
Copy the full SHA 88a81d2View commit details
Commits on May 7, 2024
-
aws-toolkit-automation committed
May 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 2b1fa56 - Browse repository at this point
Copy the full SHA 2b1fa56View commit details -
Update version to snapshot version: 1.3.0-SNAPSHOT
aws-toolkit-automation committedMay 7, 2024 Configuration menu - View commit details
-
Copy full SHA for c6bda81 - Browse repository at this point
Copy the full SHA c6bda81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9803225 - Browse repository at this point
Copy the full SHA 9803225View commit details -
Configuration menu - View commit details
-
Copy full SHA for 617952d - Browse repository at this point
Copy the full SHA 617952dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ba1e04 - Browse repository at this point
Copy the full SHA 1ba1e04View commit details -
fix(build): "npm run package" fails on Windows #4947
Problem: Node v20.12.2 has introduced an issue with spawnSync (execFileSync) on Windows: nodejs/node#52554 ``` > ts-node ./scripts/build/handlePackageJson <ref *1> Error: spawnSync vsce ENOENT at Object.spawnSync (node:internal/child_process:1124:20) at spawnSync (node:child_process:876:24) at Object.execFileSync (node:child_process:919:15) at main (C:\Users\rbbarad\Desktop\vscode-toolkit\aws-toolkit-vscode-staging\scripts\package.ts:156:23) at Object.<anonymous> (C:\Users\rbbarad\Desktop\vscode-toolkit\aws-toolkit-vscode-staging\scripts\package.ts:181:1) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module.m._compile (C:\Users\rbbarad\Desktop\vscode-toolkit\aws-toolkit-vscode-staging\node_modules\ts-node\src\index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Object.require.extensions.<computed> [as .ts] (C:\Users\rbbarad\Desktop\vscode-toolkit\aws-toolkit-vscode-staging\node_modules\ts-node\src\index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1206:32) { errno: -4058, code: 'ENOENT', syscall: 'spawnSync vsce', path: 'vsce', spawnargs: [ 'package', '--ignoreFile', '../.vscodeignore.packages' ], error: [Circular *1], status: null, signal: null, output: null, pid: 0, stdout: null, stderr: null } ``` Solution: Set the "shell" flag when on Windows OS. This is because `vsce` is a `.cmd` file which needs a shell to run. Testing: - Ran `npm install`, `npm run compile`, `npm run package` locally. confirmed packaging was successful Related: - aws/aws-toolkit-azure-devops#552 - nodejs/node#52554
Configuration menu - View commit details
-
Copy full SHA for 09bfb14 - Browse repository at this point
Copy the full SHA 09bfb14View commit details -
feat(amazonq): multi-root workspace support #4948
Problem Security scans don't work for multi-root workspaces. Solution - Gather all open workspace folders for security scan payload instead of from the active file - Since we no longer require the active file, remove the requirement of having a file open to run scans
Configuration menu - View commit details
-
Copy full SHA for 239fb5d - Browse repository at this point
Copy the full SHA 239fb5dView commit details -
feat(login): add help link #4940
Problem Add Help link in Login Page. Solution - Introducing BEM naming convention for classes/CSS - https://getbem.com/. - Use ? for icon. - Record Telemetry data when a user clicks the help link.
Configuration menu - View commit details
-
Copy full SHA for c362f13 - Browse repository at this point
Copy the full SHA c362f13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d22d9d - Browse repository at this point
Copy the full SHA 2d22d9dView commit details -
fix(amazonq): incorrect project scan size limit #4924
Problem `collectFiles` method uses a different max payload size value than security scans. Solution - Pass the desired max value to `collectFiles` - Use 500MB as the max size
Configuration menu - View commit details
-
Copy full SHA for aa8593c - Browse repository at this point
Copy the full SHA aa8593cView commit details -
fix(amazonq): chat may hang in ts/js files #4954
Problem Q chat may hang when processing fragments of ts/js code. The Tsx.findNames and Tsx.findNamesWithInExtent functions hang (Promise does not resolve). These functions invoke WASM/rust code. - #4935 - #4810 Solution Remove uses of Tsx.findNames and Tsx.findNamesWithInExtent. The fully qualified names (FQN) library is used to help service build prompts with variable names in user's IDE to reduce hallucinations, but they are not required for normal functionality.
Configuration menu - View commit details
-
Copy full SHA for 5237216 - Browse repository at this point
Copy the full SHA 5237216View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20c948b - Browse repository at this point
Copy the full SHA 20c948bView commit details
Commits on May 8, 2024
-
fix: null extension during Debug mode (#4953)
Fixes: #4658 Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4ed52b0 - Browse repository at this point
Copy the full SHA 4ed52b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for da367e9 - Browse repository at this point
Copy the full SHA da367e9View commit details -
feate(amazonq): only display open chat codelens if authenticated (#4955)
* feate(amazonq): only display open chat codelens if authenticated * fix tests * use sync method to fix tests * Update packages/core/src/test/codewhispererChat/editor/codelens.test.ts Co-authored-by: Nikolas Komonen <[email protected]> --------- Co-authored-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 199d0fa - Browse repository at this point
Copy the full SHA 199d0faView commit details -
Revert "fix(amazonq): update cross file context config" (#4961)
Configuration menu - View commit details
-
Copy full SHA for 8bd66cc - Browse repository at this point
Copy the full SHA 8bd66ccView commit details -
aws-toolkit-automation committed
May 8, 2024 Configuration menu - View commit details
-
Copy full SHA for ab0f8b1 - Browse repository at this point
Copy the full SHA ab0f8b1View commit details
Commits on May 9, 2024
-
Update version to snapshot version: 1.4.0-SNAPSHOT
aws-toolkit-automation committedMay 9, 2024 Configuration menu - View commit details
-
Copy full SHA for d156299 - Browse repository at this point
Copy the full SHA d156299View commit details -
fix: copyPackageJson script development mode (#4966)
Problem: With the recent addition for the null extension fix in debug mode, we ran the hack during actual packaging of the AWS Toolkit extension. This hack caused the vsix to not work Solution: Only run the hack during development. We did this by adding a flag to the handlePackageJson script to do the hack if the '--development' flag is given. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af5876a - Browse repository at this point
Copy the full SHA af5876aView commit details -
web: get Amazon Q debug mode running (#4963)
Amazon Q is not fully working in web, but this gets the Debug setup working so we can start developing Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40d6ce3 - Browse repository at this point
Copy the full SHA 40d6ce3View commit details -
fix(amazonq): update icons on Login Page #4932
Problem: Icons are not displayed on for existing connections. Solution: Use type to render icons
Configuration menu - View commit details
-
Copy full SHA for 5d19062 - Browse repository at this point
Copy the full SHA 5d19062View commit details -
feat(auth): navigate login page with keyboard (#4962)
* feat(auth): navigate login page with keyboard - Use tab/shift+tab to navigate the login. - Press enter on start url field to shortcut continue (if the form is valid). - Press enter on any of the IAM credential fields to continue (if the form is valid). - Autofocus the start url field. - Autofocus IAM profile name field. * add support for focus/enter on IAM creds * changelog items
Configuration menu - View commit details
-
Copy full SHA for d6971fe - Browse repository at this point
Copy the full SHA d6971feView commit details -
fix(amazonq transform): messages to chat get lost #4949
Problem: Messages get lost in the code path where customers do not need to provide a JAVA_HOME. This leads to missing chat bubbles for: 1. "Building your project" 2. "I was able to build your project" 3. "I am starting to transform your code" Solution: Issue was due to typo when translating `tabId` to `tabID`. Search in the code shows that `tabID` is 10x more common than `tabId` so aligning Q Code Transform to this format. After aligning the usages the missing messages are shown again and are animated where required.
Configuration menu - View commit details
-
Copy full SHA for 0f24dcc - Browse repository at this point
Copy the full SHA 0f24dccView commit details -
fix(feedback): rename last CodeWhisperer strings to Amazon Q (#4967)
* fix(feedback): rename last CodeWhisperer strings to Amazon Q * Update packages/core/src/feedback/vue/submitFeedback.vue Co-authored-by: Justin M. Keyes <[email protected]> --------- Co-authored-by: Justin M. Keyes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e90eae8 - Browse repository at this point
Copy the full SHA e90eae8View commit details -
feat(auth): request necessary scopes only (#4916)
* feat(auth): request AWS account scopes only when necessary Applies to both IdC and BuilderID - Don't request if we are signing into Amazon Q - Request if we are in toolkit re-using a connection from Amazon Q - via login page - via quick pick menu - Don't invalidate the connection in Amazon Q if we cancel adding scopes in toolkit. TODO: - Cancelling adding scopes in Q still invalidates the connection in toolkit. * remove invalidate option from addScopes, fix telemetry * restore original scopes if re-using a connection in Q fails * allow reauth without invalidation * fix tests * re-add and update test * docstrings
Configuration menu - View commit details
-
Copy full SHA for 5a59571 - Browse repository at this point
Copy the full SHA 5a59571View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90ac4bc - Browse repository at this point
Copy the full SHA 90ac4bcView commit details -
refactor: use 'extension' for file names (#4969)
To keep things unified, the entrypoint files for the extension should use the 'extension' terminology instead of 'main'. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd9bc0c - Browse repository at this point
Copy the full SHA bd9bc0cView commit details -
fix: debugging breakpoints not working (#4972)
For some reason this separate fix caused debugging breakpoints to no be able to be registered. Reverting this separate fix for now until we can determine why. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8bd0782 - Browse repository at this point
Copy the full SHA 8bd0782View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0b50d2 - Browse repository at this point
Copy the full SHA b0b50d2View commit details
Commits on May 10, 2024
-
Amazon Q Transform Feature - human in the loop (#4920)
Allow users to interactively update dependencies while transformation is paused waiting for user input.
Configuration menu - View commit details
-
Copy full SHA for 0da289c - Browse repository at this point
Copy the full SHA 0da289cView commit details
Commits on May 12, 2024
-
fix(amazonq): tf scans mapped to wrong language #4975
Problem: Projects with terraform files fail with `Improperly formed request` error. This is happening due to `tf` incorrectly mapped to `hcl`. Solution: The reverse map lookup function `getLanguageFromFileExtension` is unreliable because there could be duplicate values. Use `getLanguageContext` instead.
Configuration menu - View commit details
-
Copy full SHA for fe588c5 - Browse repository at this point
Copy the full SHA fe588c5View commit details
Commits on May 13, 2024
-
feat: Enable Authorization Code + PKCE flow (#4974)
* remove PKCE feature flag - Now we run Device Code if we are in an ssh workspace - Otherwise we run the Authorization code flow Signed-off-by: Nikolas Komonen <[email protected]> * use new oidc client, remove our temp one Since the new OIDC client with Authorization Code flow was not released we had to use a pre-build version. Now that the new client is released we can actually use it. Solution: This commit removes the old temp OIDC client and simply uses our existing one with minor modifications to get things working. Also we were required to update some transitive dependencies which is why there are 'smithy' related dependency changes Signed-off-by: Nikolas Komonen <[email protected]> * get tests working + changelog items Signed-off-by: Nikolas Komonen <[email protected]> --------- Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bbefe6b - Browse repository at this point
Copy the full SHA bbefe6bView commit details -
aws-toolkit-automation committed
May 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 723f6b7 - Browse repository at this point
Copy the full SHA 723f6b7View commit details -
Update version to snapshot version: 3.4.0-SNAPSHOT
aws-toolkit-automation committedMay 13, 2024 Configuration menu - View commit details
-
Copy full SHA for d122620 - Browse repository at this point
Copy the full SHA d122620View commit details -
aws-toolkit-automation committed
May 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 512aa4a - Browse repository at this point
Copy the full SHA 512aa4aView commit details -
Update version to snapshot version: 1.5.0-SNAPSHOT
aws-toolkit-automation committedMay 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 4606b21 - Browse repository at this point
Copy the full SHA 4606b21View commit details -
fix(auth): re-use existing connections if provided manually (#4973)
* fix(auth): re-use existing connections if provided manually - If the user enters start url and region of an already existing connection that was displayed, we will just proceed with re-using that connection. - If the user enters start url but region differs from what exists, we will display the error. * fix(toolkit): return to explorer if login page is exited * fix(codecatalyst): use default scopes (includes aws account scopes) for sign in
Configuration menu - View commit details
-
Copy full SHA for fade41d - Browse repository at this point
Copy the full SHA fade41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e52e000 - Browse repository at this point
Copy the full SHA e52e000View commit details -
feat(amazonq): telemetry, improve messages for Q Codescans #4951
Problem - Inconsistent customer facing messages and telemetry events in codescan. Solution - Added customer facing error messages by removing existing to keep consistent. - Added telemetry to understand the customer facing errors at different stages.
Configuration menu - View commit details
-
Copy full SHA for 0c645fb - Browse repository at this point
Copy the full SHA 0c645fbView commit details -
feat(IamPolicyChecks): move from DevSettings to Experiments, refactor…
… S3Client #4964 Refactor code by moving static strings to a constants file, creating help functions, and updating error messages. Moving from DevSettings to Experiments to allow access. S3Client changed to use `DefaultS3Client` and adapted URI parser [dependency](https://www.npmjs.com/package/amazon-s3-uri) to a helper function.
Configuration menu - View commit details
-
Copy full SHA for a5cdd4d - Browse repository at this point
Copy the full SHA a5cdd4dView commit details -
fix(auth): use startUrl for cache key (#4983)
- Also adds startUrl to the registration file. Problem: We only index client registrations files on region, scopes. IdC and builder ID are not distinguishable at the region + scopes level. This means that we can cache to the same registration file if the user tries IdC or builder Id. Now that we have moved to a new auth flow we no longer control opening the start URL, it is provided by the registration. If the registration is shared between IdC and builder ID, whatever one is accessed first will have its start URL saved to the cache. Solution: Add start url to the hash key. This will prevent IdC and buidler ID logins matching to the same registration and routing to the same start url. Steps to reproduce without this: 1. Try to log into builder ID or IdC 2. Don't fully sign in, cancel and return. 3. Try to sign in with the other. 4. The start URL will be for sign in method in step 1, not the one from step 3.
Configuration menu - View commit details
-
Copy full SHA for 4806eb4 - Browse repository at this point
Copy the full SHA 4806eb4View commit details
Commits on May 14, 2024
-
auth: do not use URI Handler in Auth PKCE flow (#4987)
Problem: When users finish accepting scopes in the browser, they are brought to a custom "success" page. Additionally we use the URI Handler to then redirect them back to the IDE. The issue is that the user is being redirected from the local server address which includes a port number. Since this port number is dynamic there will always be an "allow" prompt in the browser, instead of seamlessly taking them back to the IDE. Solution: For now we will disable the URI Handler redirect and add it back in if the vscode:// uri becomes allowed to use as a redirect URI instead Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1c0c25 - Browse repository at this point
Copy the full SHA c1c0c25View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf41cfa - Browse repository at this point
Copy the full SHA cf41cfaView commit details -
fix(amazonq): security scan may fail on non-text documents #4984
Problem: Security scans fail if project contains binary files like .pdf or .ttf File seems to be binary and cannot be opened as text Solution: - Update ignore patterns to exclude more file types - Wrap `openTextDocument` in a try-catch block to skip a file if it can't be opened
Configuration menu - View commit details
-
Copy full SHA for 98e39bb - Browse repository at this point
Copy the full SHA 98e39bbView commit details -
feat(amazonq): add 'Run Project Scan' to command palette (#4990)
* Aliging Customer facing messages and telemetry events in both IDE's * Changes to error messages * Adding logs in catch blocks * Addressing comments * Addressing comments * Minor edits * Minor edits * Added Change log and modifed error.ts in codescan * Added change log * Updated Change log * Try running the build again * Addressing comments * Adding custom command to run project scan * Add change log
Configuration menu - View commit details
-
Copy full SHA for 501b3da - Browse repository at this point
Copy the full SHA 501b3daView commit details
Commits on May 15, 2024
-
chore: remove cn and cloud9 items from q contributes (#4992)
- Should fix nls warnings. - Amazon Q is not supported in cloud9 at this time. - No need for cn translations, there is nothing to change about it for Amazon Q.
Configuration menu - View commit details
-
Copy full SHA for 0537ebc - Browse repository at this point
Copy the full SHA 0537ebcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 974b188 - Browse repository at this point
Copy the full SHA 974b188View commit details -
fix: remove unused arg (#4998)
This function does not accept a 4th arg, but somehow the previous PR did not fail CI. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a32daaf - Browse repository at this point
Copy the full SHA a32daafView commit details -
dev: Edit Auth connections + fix stale auths (#4995)
Problem: It is common for want to view/modify the Auth Profile store. The Profile Store is our source of truth for auth connections that the extension is aware of and using. We sometimes want to read and modify this source of truth for debugging purposes. The issue is that this option is hard to find since you need to dig through multiple menus. Also once you get to it, the content you see will become stale if it every changes. Solution: - Add a new item to our Developer Menu to open the auth profile store editor. - Fix issue where the text document editor was not refreshing with the latest changes. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1652085 - Browse repository at this point
Copy the full SHA 1652085View commit details -
Configuration menu - View commit details
-
Copy full SHA for e05737f - Browse repository at this point
Copy the full SHA e05737fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 292fa96 - Browse repository at this point
Copy the full SHA 292fa96View commit details -
fix(amazonq): move view details and explain to quickfix (#5001)
* fix(amazonq): move view details and explain to quickfix * add changelog
Configuration menu - View commit details
-
Copy full SHA for 04460ef - Browse repository at this point
Copy the full SHA 04460efView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7e15e1 - Browse repository at this point
Copy the full SHA a7e15e1View commit details
Commits on May 16, 2024
-
codecatalyst: fix invalid SSO profile in Dev Env (#5005)
Problem: When a Dev Env is spun up, the AWS Toolkit extension automatically creates an SSO profile in the Dev Env using the the sso session metadata in the ~/.aws/config file. In the scenario the ~/.aws/config file contained the session for a non-builder id session the SSO profile created would be incorrect due to the startUrl and Region being reversed with eachother when the SSO profile was created. This led to an invalid SSO profile, so any attempts to reauthenticate would fail. Solution: correctly create the SSO profile. Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b7bcf11 - Browse repository at this point
Copy the full SHA b7bcf11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22b2515 - Browse repository at this point
Copy the full SHA 22b2515View commit details -
Configuration menu - View commit details
-
Copy full SHA for b24e963 - Browse repository at this point
Copy the full SHA b24e963View commit details -
Amazon Q Transform - Bugfixes (#4993)
Amazon Q Transform Bugfixes - Chore - fix spelling error - Bugfix - uploadId overwriting jobId causing issues calling getTransformation - Bugfix - fix Human in the loop chat messages
Configuration menu - View commit details
-
Copy full SHA for 99a92e4 - Browse repository at this point
Copy the full SHA 99a92e4View commit details -
devEnv: Fix Dev Env timeout + logs (#4980)
* fix: add more logs to Dev Env heartbeat We want more logs to help determine if the dev env heartbeat is working as expected Signed-off-by: Nikolas Komonen <[email protected]> * refactor: fix circular dependency The command that shows the login vue was having circular dependency issues. This moves that logic in to its own file to fix this. Signed-off-by: Nikolas Komonen <[email protected]> * devEnv: try start activity heartbeat on connection change Problem: We only tried to start the activity heartbeat on extension startup. So if that failed due to something like an invalid connection, the heartbeat mechanism would not start Solution: Try and start the heartbeat mechanism when the CC connection changes as well. But if it is already running then we just skip it. Signed-off-by: Nikolas Komonen <[email protected]> --------- Signed-off-by: Nikolas Komonen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4512e20 - Browse repository at this point
Copy the full SHA 4512e20View commit details -
Configuration menu - View commit details
-
Copy full SHA for a07ab30 - Browse repository at this point
Copy the full SHA a07ab30View commit details -
fix(amazonq): avoid apply fix if already applied (#5013)
* fix(amazonq): avoid apply fix if already applied * fix tests
Configuration menu - View commit details
-
Copy full SHA for af4f464 - Browse repository at this point
Copy the full SHA af4f464View commit details -
Merge pull request #5009 from tincheng/log
Amazon Q Code Transform: Improve UploadZip logging
Configuration menu - View commit details
-
Copy full SHA for 68d2e3b - Browse repository at this point
Copy the full SHA 68d2e3bView commit details -
feat: add modifySourceFolder telemetry event when customer modifies d…
…eafult source folderwhile using /dev (#4986)
Configuration menu - View commit details
-
Copy full SHA for 143b29e - Browse repository at this point
Copy the full SHA 143b29eView commit details -
chore: updated q feature dev name strings (#5004)
* Updated Q feature dev name * added changelog * Revert "added changelog" This reverts commit 9439145.
Configuration menu - View commit details
-
Copy full SHA for d5211b7 - Browse repository at this point
Copy the full SHA d5211b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for df73086 - Browse repository at this point
Copy the full SHA df73086View commit details
Commits on May 17, 2024
-
fix(auth): enforce 5 scopes when reauthing amazon q (#5015)
* fix(auth): enforce 5 scopes when reauthing amazon q Problem: Users can keep an old 3 scope connection if they continue to reauth with the notification once auth expires. Solution: Any call to the amazon q's reauth function enforces 5 scopes, which will fix the reauth notification. - Does NOT update the case where user reauths an amazon q connection via toolkit quickpick. That is more difficult. * update tests
Configuration menu - View commit details
-
Copy full SHA for d233b70 - Browse repository at this point
Copy the full SHA d233b70View commit details -
fix(auth): allow flow to continue if users copy url #5007
Problem: Clicking anything other than 'open' in the VSC redirect url modal for the auth page would result in cancelling the auth attempt. Solution: Do not expect a specific response from the url modal. Allow the auth flow to continue even if the user hits 'Cancel' or 'Copy'. To cancel the auth flow, the user should click 'Cancel' in the login ui OR leave the login ui.
Configuration menu - View commit details
-
Copy full SHA for 0f9782a - Browse repository at this point
Copy the full SHA 0f9782aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6583a32 - Browse repository at this point
Copy the full SHA 6583a32View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe0f686 - Browse repository at this point
Copy the full SHA fe0f686View commit details -
Configuration menu - View commit details
-
Copy full SHA for f05076e - Browse repository at this point
Copy the full SHA f05076eView commit details -
aws-toolkit-automation committed
May 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 098bd24 - Browse repository at this point
Copy the full SHA 098bd24View commit details -
Update version to snapshot version: 3.5.0-SNAPSHOT
aws-toolkit-automation committedMay 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 0653bc1 - Browse repository at this point
Copy the full SHA 0653bc1View commit details -
aws-toolkit-automation committed
May 17, 2024 Configuration menu - View commit details
-
Copy full SHA for a6cf669 - Browse repository at this point
Copy the full SHA a6cf669View commit details -
Update version to snapshot version: 1.6.0-SNAPSHOT
aws-toolkit-automation committedMay 17, 2024 Configuration menu - View commit details
-
Copy full SHA for c322591 - Browse repository at this point
Copy the full SHA c322591View commit details
Commits on May 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 01fbfb5 - Browse repository at this point
Copy the full SHA 01fbfb5View commit details -
aws-toolkit-automation committed
May 18, 2024 Configuration menu - View commit details
-
Copy full SHA for 622c993 - Browse repository at this point
Copy the full SHA 622c993View commit details -
Update version to snapshot version: 3.6.0-SNAPSHOT
aws-toolkit-automation committedMay 18, 2024 Configuration menu - View commit details
-
Copy full SHA for b09c72b - Browse repository at this point
Copy the full SHA b09c72bView commit details
Commits on May 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a24f201 - Browse repository at this point
Copy the full SHA a24f201View commit details -
feat(policycheck): telemetry and general changes(#4996)
Telemetry implementation, updating response colors to be shown in the Webview, and return intended line numbers in problems panel. Corresponding PR for new metrics in aws-toolkit-common: aws/aws-toolkit-common#735
Configuration menu - View commit details
-
Copy full SHA for b68e98f - Browse repository at this point
Copy the full SHA b68e98fView commit details -
fix(amazonq): misc chat panel fixes (#5011)
### Problem(s) - When Q panel opens, it doesn't autofocus to prompt input field - Inside chat body, if there is a code block inside a list item it shows <br/> tags - Prompt input field in Q Chat tabs doesn't stop after it reaches to the given maxLength - Links are not behaving as expected for middle mouse clicks inside a chat item. ### Solution(s) - Added autofocus to prompt field when the panel opens or there is a new tab. - Removed break generation for list items (which is the supposed way from markedjs and github's own markdown styling) - Prompt input maxLength value was used incorrectly, it was using the function declaration instead of the return value of the function. It is corrected. - As we do for the clicks, we also mapped the middle clicks (auxclick) to the same handler functions. * fixed autofocus to prompt field when Q panel is open fixed unexpected <br> tags inside code blocks in Q Chat fixed links are opening in Q panel with middle mouse clicks * Update packages/amazonq/.changes/next-release/Bug Fix-b8c7f55f-2986-48a9-91e7-cf143faf51fc.json Co-authored-by: Maxim Hayes <[email protected]> * Update packages/amazonq/.changes/next-release/Bug Fix-86b9e6a2-2d86-4be5-b362-93eb5f96568f.json Co-authored-by: Maxim Hayes <[email protected]> --------- Co-authored-by: Maxim Hayes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 61b31d7 - Browse repository at this point
Copy the full SHA 61b31d7View commit details -
fix(amazonq): duplicate findings for multi-folder workspaces (#5020)
* fix(amazonq): duplicate findings for multi-folder workspaces * fix tests * add comment
Configuration menu - View commit details
-
Copy full SHA for 0e1fe06 - Browse repository at this point
Copy the full SHA 0e1fe06View commit details -
auth: use minimal CW scopes with Q, but expire connection
Problem: In AWS Toolkit 2.19 we only added the 3 CW scopes for BiD, but now with Amazon Q there are an additional 2 scopes (gumby/weaverbird). The issue is that connections made with 2.19 did not seamlessly transition in to the new standalone Q extension. Instead users needed to know to go to the Q login webview and select their existing BiD connection and have it reauthed to work with Q. Instead of the above behavior, if the user has the 3 scope connection, we want to auto connect to this connection but then mark it as expired so that the status bar icon for Q tells the user they need to reauth (yellow background and reauth icon). Repro Steps of current state (before this change): - Delete all connection cache from AWS + Amazon Q extensions first - Download AWS Toolkit 2.19 (this only adds the 3 scopes) - Connect to CW with BiD - Install the latest Amazon Q Note how the old connection is not automatically transitioned over, the status bar shows the 'X' as there is no connection. But if you open the Q login webview it will show BiD, then you can select that and things will work again. Solution: This commit changes the code to detect a 3 scope CW connection, then use it for Q but mark it as expired. So what will happen is that if you follow the repro steps above, but instead launch Amazon Q with this change, once you open the Q webview it will auto connect to the old connection but show it as expired in the status bar. Things that still need to be addressed: - The logic to check + use the 3 scope connection only triggers when the Amazon Q panel/webview is opened. Until it is opened nothing happens, and the user is not made aware to reauth in the status bar icon. A better solution is to move this logic to the backend code so we can trigger it without the need to open the webview. Or does it make sense to auto open the Q webview if we detect they only have the 3 scopes instead of 5 - If the status bar is shown as expired, then none of Q chat will work BUT the user will still be able to type messages in that (please verify this). Though it will say they need to reauth once they send the message. Do we want this behavior or to show the reauth page? Signed-off-by: Nikolas Komonen <[email protected]> Co-authored-by: Maxim Hayes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebd440e - Browse repository at this point
Copy the full SHA ebd440eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6eff21 - Browse repository at this point
Copy the full SHA b6eff21View commit details
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2ec8620 - Browse repository at this point
Copy the full SHA 2ec8620View commit details -
auth: don't immediately open reauth URL for 3 scope connections
Instead, just go to the amazon q panel reauth page and display a reauth toast. It is up to the user to initiate the auth flow.
Configuration menu - View commit details
-
Copy full SHA for bb01971 - Browse repository at this point
Copy the full SHA bb01971View commit details -
Merge pull request #5029 from hayemaxi/reauthMissingScopes
Amazon Q 3 scopes to 5 scopes migration
Configuration menu - View commit details
-
Copy full SHA for 9525cdf - Browse repository at this point
Copy the full SHA 9525cdfView commit details -
aws-toolkit-automation committed
May 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 282a9d9 - Browse repository at this point
Copy the full SHA 282a9d9View commit details -
Update version to snapshot version: 1.7.0-SNAPSHOT
aws-toolkit-automation committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for f9c0197 - Browse repository at this point
Copy the full SHA f9c0197View commit details
Commits on May 22, 2024
-
fix(telemetry): use awsRegion instead of region, update guess function (
#5025) Problem: Some telemetry (auth_addConnection) is using a 'region' field instead of the built in 'awsRegion' field. This provides misleading results in telemetry, since 'awsRegion' is guessed based on toolkit usage. Solution: Remove 'region' field and just use 'awsRegion'. Also, updating the 'awsRegion' guess function to account for amazon Q. - Remove checking tree nodes from the region guess function, since it was unused functionality. - If a region can't be determined, return undefined. It is up to the caller to define the default instead now.
Configuration menu - View commit details
-
Copy full SHA for b69e7c7 - Browse repository at this point
Copy the full SHA b69e7c7View commit details -
chore(amazonq): fix and enable transform test (#5041)
* Chore - refactor Amazon Q Transform service utils * Chore - rename files - add file handler - rename root service folder * Chore - resolve refactor import issues * Chore - fix upstream merge conflicts * Chore - add updated import path * Chore - move remaining API steps to apiHandler file * Chore - revert startTransformByQ refactor * chore - revert stopTransformByQ fnc location * chore - Add direct import for model.TransformationCandidateProject statements * Chore - push test to see CI results * Chore - make lowercase" * Chore - use fsPath instead * Chore - us fsPath instead of path for humanInTheLoopManager class * Chore - remove file from downstream fork --------- Co-authored-by: Nick Ardecky <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b9602a - Browse repository at this point
Copy the full SHA 6b9602aView commit details -
feat(policycheck): misc fixes + enable feature for all users (#5028)
* feat(IamPolicyChecks): remove from Experiments and enabling by default, update error messages, fix bugs * Create helper function for error message handling * Create helper function for error message handling
Configuration menu - View commit details
-
Copy full SHA for 211f527 - Browse repository at this point
Copy the full SHA 211f527View commit details -
fix(transform): verify project on use instead of ext activation (#5038)
Co-authored-by: Leonardo Araneda Freccero <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b243f9f - Browse repository at this point
Copy the full SHA b243f9fView commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4e188c - Browse repository at this point
Copy the full SHA a4e188cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42783c4 - Browse repository at this point
Copy the full SHA 42783c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd3e2d5 - Browse repository at this point
Copy the full SHA fd3e2d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 320763e - Browse repository at this point
Copy the full SHA 320763eView commit details -
aws-toolkit-automation committed
May 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 5c24600 - Browse repository at this point
Copy the full SHA 5c24600View commit details -
Update version to snapshot version: 3.7.0-SNAPSHOT
aws-toolkit-automation committedMay 23, 2024 Configuration menu - View commit details
-
Copy full SHA for daa756d - Browse repository at this point
Copy the full SHA daa756dView commit details -
fix(ci): temporarily disable check for $OVSX_PAT
Problem: Release fails because OVSX_PAT is not available. Solution: Temporarily disable this check, to unblock the release.
Configuration menu - View commit details
-
Copy full SHA for ea835ed - Browse repository at this point
Copy the full SHA ea835edView commit details -
Configuration menu - View commit details
-
Copy full SHA for f11de6e - Browse repository at this point
Copy the full SHA f11de6eView commit details -
aws-toolkit-automation committed
May 23, 2024 Configuration menu - View commit details
-
Copy full SHA for ae4b0eb - Browse repository at this point
Copy the full SHA ae4b0ebView commit details -
Update version to snapshot version: 3.8.0-SNAPSHOT
aws-toolkit-automation committedMay 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 9d64962 - Browse repository at this point
Copy the full SHA 9d64962View commit details -
telemetry(codewhisperer): customizationArn in clientComponentLatency,…
… perceivedLatency #5035 Telemetry Common repo PR: aws/aws-toolkit-common#738
Configuration menu - View commit details
-
Copy full SHA for 62d98ae - Browse repository at this point
Copy the full SHA 62d98aeView commit details -
fix(amazonq-transform): reset sessionId on new project transformation #…
…5033 Problem: SessionId remains the same for different transformation jobs while it should reset for different transformation jobs. Solution: Call the preExisting `setSessionId()` which recalculates the hash before the introduction for Q Code Transform is written to chat. (this method was never called before, or its invocations must have been mistakenly removed)
Configuration menu - View commit details
-
Copy full SHA for 4d22231 - Browse repository at this point
Copy the full SHA 4d22231View commit details -
fix(codecatalyst): menu command fails after using tree node #4870
Problem: The codecatalyst commands: "Open Dev Environment" "Clone Repository" fail if their menu forms are used AFTER the treenode forms. Steps to reproduce: 1. click the "Open Dev Environment" tree node in the codecatalyst panel. 2. close the wizard. 3. in the codecatalyst panel, expand the "..." root menu and choose "Open CodeCatalyst Dev Environment" 4. it fails because the TreeNode from step (1) is passed as the first arg, which breaks `openDevEnv()`. Solution: Follow the instructions from the `VsCodeCommandArg` docstring: https://github.com/aws/aws-toolkit-vscode/blob/4decdf6341a38c58db0e9f778ba57b5514434b0b/packages/core/src/shared/vscode/commands2.ts#L23-L41 TODO: Note that the bug does NOT occur if you use the "..." menu command FIRST. It seems like the TreeNode is stored as state on the `CommandResource`; is that actually necessary?
Configuration menu - View commit details
-
Copy full SHA for afe1a39 - Browse repository at this point
Copy the full SHA afe1a39View commit details
Commits on May 24, 2024
-
refactor(ux): css variables for font-sizes #5042
Problem Update font-sizes in Login Page for AWS Toolkits and Amazon Q Solution - Use CSS Variables - Initially used `rem` though now using `var(--vscode-font-size)` for base font size. This way the extension's base font will be as set by user for their VSCode - fixed colors for dark and light theme
Configuration menu - View commit details
-
Copy full SHA for a5379f3 - Browse repository at this point
Copy the full SHA a5379f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0827476 - Browse repository at this point
Copy the full SHA 0827476View commit details -
build: use TSESTree instead of "dist/generated/ast-spec"
Problem: After updating to @typescript-eslint/parser 7.x, importing '@typescript-eslint/types/dist/generated/ast-spec' fails: lib/rules/no-await-on-vscode-msg.ts(15,34): error TS2307: Cannot find module '@typescript-eslint/types/dist/generated/ast-spec' or its corresponding type declarations. lib/rules/no-await-on-vscode-msg.ts(40,13): error TS2322: Type '"error"' is not assignable to type 'RuleRecommendation | RuleRecommendationAcrossConfigs<never[]> | undefined'. lib/rules/no-only-in-tests.ts(13,62): error TS2307: Cannot find module '@typescript-eslint/types/dist/generated/ast-spec' or its corresponding type declarations. lib/rules/no-only-in-tests.ts(32,13): error TS2322: Type '"error"' is not assignable to type 'RuleRecommendation | RuleRecommendationAcrossConfigs<never[]> | undefined'. lib/rules/no-only-in-tests.ts(60,25): error TS2322: Type '`${any}OnlyErrMsg`' is not assignable to type '"describeOnlyErrMsg" | "itOnlyErrMsg"'. Solution: Import from '@typescript-eslint/utils' instead.
Configuration menu - View commit details
-
Copy full SHA for 65156fb - Browse repository at this point
Copy the full SHA 65156fbView commit details -
refactor(auth): delete old auth ui code (#5040)
Anything that is still used was moved to src/login.
Configuration menu - View commit details
-
Copy full SHA for be72449 - Browse repository at this point
Copy the full SHA be72449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cafc80 - Browse repository at this point
Copy the full SHA 4cafc80View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8d908c - Browse repository at this point
Copy the full SHA d8d908cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7c4b9d - Browse repository at this point
Copy the full SHA a7c4b9dView commit details -
fix(amazonq): increase fuzz factor for diff patch (#5048)
* fix(amazonq): increase fuzz factor for diff patch * fix tests
Configuration menu - View commit details
-
Copy full SHA for 04bbdd2 - Browse repository at this point
Copy the full SHA 04bbdd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 020f6f7 - Browse repository at this point
Copy the full SHA 020f6f7View commit details -
fix(login): update margin for login screen #5058
Problem Content in Login Page gets clipped with width is decreased beyond min width and only partial content is visible. Solution Update margin to auto for auth container.
Configuration menu - View commit details
-
Copy full SHA for b37e1d8 - Browse repository at this point
Copy the full SHA b37e1d8View commit details -
fix(csharpSamDebug): remove debug mode for arm64 #4934
Problem: When `sam local` is invoked for `cSharp`, the invocation gets blocked when trying to attach a debugger. `vsdbg` is not supported for `arm64` architecture. Solution: Disable `debug` mode for cases when the template architecture is `arm64` or the developer is using `arm64` architecture machines, for eg - Apple M1/M2/M3 chips.
Configuration menu - View commit details
-
Copy full SHA for 388b656 - Browse repository at this point
Copy the full SHA 388b656View commit details
Commits on May 28, 2024
-
lint: catch incorrect usages of once(), fix current usages (#5049)
Problem: `once()` can be used incorrectly such that code can be executed multiple times, even if it seems that that the developer just wanted it to run a single time. Solution: Custom lint rule to try to catch these cases. It is not foolproof, but it should catch most issues.
Configuration menu - View commit details
-
Copy full SHA for 5bc95f6 - Browse repository at this point
Copy the full SHA 5bc95f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 474453e - Browse repository at this point
Copy the full SHA 474453eView commit details -
fix(amazon q): improve "tips" behavior #5036
Problem: - Tips are displayed on programming languages not supported by Amazon Q - First time users experience multiple onboarding tips Solution: - disable tips for filetypes not supported by amazon q - disable codelens if amazon q chat is visible - disable codelens if lineAnnotationController is visible
Configuration menu - View commit details
-
Copy full SHA for 9edc9bd - Browse repository at this point
Copy the full SHA 9edc9bdView commit details -
fix(featureDev): File Rejection stopped working #5055
Problem: When clicking on the X to reject change nothing happens Solution: Fix was introduced to Mynah in 4.9.1 version. Update mynah chat card update by messageId.
Configuration menu - View commit details
-
Copy full SHA for 03e5e29 - Browse repository at this point
Copy the full SHA 03e5e29View commit details -
fix(build): "Cannot find '…/dist/generated/ast-spec'"
Problem: CI fails to build: Error: lib/rules/no-incorrect-once-usage.ts(52,34): error TS2307: Cannot find module '@typescript-eslint/types/dist/generated/ast-spec' or its corresponding type declarations. Error: lib/rules/no-incorrect-once-usage.ts(66,13): error TS2322: Type '"error"' is not assignable to type 'RuleRecommendation | RuleRecommendationAcrossConfigs<never[]> | undefined'. Solution: Update lint rule imports.
Configuration menu - View commit details
-
Copy full SHA for 985c860 - Browse repository at this point
Copy the full SHA 985c860View commit details