Skip to content
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

Commits on May 6, 2024

  1. 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]>
    dhasani23 and David Hasani committed May 6, 2024
    Configuration menu
    Copy the full SHA
    e5f26e4 View commit details
    Browse the repository at this point in the history
  2. Release 3.2.0

    aws-toolkit-automation committed May 6, 2024
    Configuration menu
    Copy the full SHA
    05b75ba View commit details
    Browse the repository at this point in the history
  3. Update version to snapshot version: 3.3.0-SNAPSHOT

    aws-toolkit-automation committed May 6, 2024
    Configuration menu
    Copy the full SHA
    88a81d2 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Release 1.2.0

    aws-toolkit-automation committed May 7, 2024
    Configuration menu
    Copy the full SHA
    2b1fa56 View commit details
    Browse the repository at this point in the history
  2. Update version to snapshot version: 1.3.0-SNAPSHOT

    aws-toolkit-automation committed May 7, 2024
    Configuration menu
    Copy the full SHA
    c6bda81 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9803225 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    617952d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1ba1e04 View commit details
    Browse the repository at this point in the history
  6. 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
    rbbarad committed May 7, 2024
    Configuration menu
    Copy the full SHA
    09bfb14 View commit details
    Browse the repository at this point in the history
  7. 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
    ctlai95 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    239fb5d View commit details
    Browse the repository at this point in the history
  8. 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.
    ivikash committed May 7, 2024
    Configuration menu
    Copy the full SHA
    c362f13 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2d22d9d View commit details
    Browse the repository at this point in the history
  10. 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
    ctlai95 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    aa8593c View commit details
    Browse the repository at this point in the history
  11. 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.
    leigaol committed May 7, 2024
    Configuration menu
    Copy the full SHA
    5237216 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    20c948b View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. fix: null extension during Debug mode (#4953)

    Fixes: #4658
    
    Signed-off-by: Nikolas Komonen <[email protected]>
    nkomonen-amazon committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4ed52b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da367e9 View commit details
    Browse the repository at this point in the history
  3. 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]>
    hayemaxi and nkomonen-amazon committed May 8, 2024
    Configuration menu
    Copy the full SHA
    199d0fa View commit details
    Browse the repository at this point in the history
  4. Revert "fix(amazonq): update cross file context config" (#4961)

    * Revert "fix(amazonq): update cross file context config #4922"
    
    This reverts commit e6d9b50.
    
    * revert cross file config change
    leigaol committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8bd66cc View commit details
    Browse the repository at this point in the history
  5. Release 1.3.0

    aws-toolkit-automation committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ab0f8b1 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Update version to snapshot version: 1.4.0-SNAPSHOT

    aws-toolkit-automation committed May 9, 2024
    Configuration menu
    Copy the full SHA
    d156299 View commit details
    Browse the repository at this point in the history
  2. 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]>
    nkomonen-amazon committed May 9, 2024
    Configuration menu
    Copy the full SHA
    af5876a View commit details
    Browse the repository at this point in the history
  3. 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]>
    nkomonen-amazon committed May 9, 2024
    Configuration menu
    Copy the full SHA
    40d6ce3 View commit details
    Browse the repository at this point in the history
  4. fix(amazonq): update icons on Login Page #4932

    Problem:
    Icons are not displayed on for existing connections.
    
    Solution:
    Use type to render icons
    ivikash committed May 9, 2024
    Configuration menu
    Copy the full SHA
    5d19062 View commit details
    Browse the repository at this point in the history
  5. 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
    hayemaxi committed May 9, 2024
    Configuration menu
    Copy the full SHA
    d6971fe View commit details
    Browse the repository at this point in the history
  6. 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.
    arangatang committed May 9, 2024
    Configuration menu
    Copy the full SHA
    0f24dcc View commit details
    Browse the repository at this point in the history
  7. 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]>
    hayemaxi and justinmk3 committed May 9, 2024
    Configuration menu
    Copy the full SHA
    e90eae8 View commit details
    Browse the repository at this point in the history
  8. 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
    hayemaxi committed May 9, 2024
    Configuration menu
    Copy the full SHA
    5a59571 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    90ac4bc View commit details
    Browse the repository at this point in the history
  10. 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]>
    nkomonen-amazon committed May 9, 2024
    Configuration menu
    Copy the full SHA
    bd9bc0c View commit details
    Browse the repository at this point in the history
  11. 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]>
    nkomonen-amazon committed May 9, 2024
    Configuration menu
    Copy the full SHA
    8bd0782 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b0b50d2 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Amazon Q Transform Feature - human in the loop (#4920)

    Allow users to interactively update dependencies while transformation is paused waiting for user input.
    damntrecky committed May 10, 2024
    Configuration menu
    Copy the full SHA
    0da289c View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. 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.
    ctlai95 committed May 12, 2024
    Configuration menu
    Copy the full SHA
    fe588c5 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. 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]>
    nkomonen-amazon committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bbefe6b View commit details
    Browse the repository at this point in the history
  2. Release 3.3.0

    aws-toolkit-automation committed May 13, 2024
    Configuration menu
    Copy the full SHA
    723f6b7 View commit details
    Browse the repository at this point in the history
  3. Update version to snapshot version: 3.4.0-SNAPSHOT

    aws-toolkit-automation committed May 13, 2024
    Configuration menu
    Copy the full SHA
    d122620 View commit details
    Browse the repository at this point in the history
  4. Release 1.4.0

    aws-toolkit-automation committed May 13, 2024
    Configuration menu
    Copy the full SHA
    512aa4a View commit details
    Browse the repository at this point in the history
  5. Update version to snapshot version: 1.5.0-SNAPSHOT

    aws-toolkit-automation committed May 13, 2024
    Configuration menu
    Copy the full SHA
    4606b21 View commit details
    Browse the repository at this point in the history
  6. 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
    hayemaxi committed May 13, 2024
    Configuration menu
    Copy the full SHA
    fade41d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e52e000 View commit details
    Browse the repository at this point in the history
  8. 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.
    laileni-aws committed May 13, 2024
    Configuration menu
    Copy the full SHA
    0c645fb View commit details
    Browse the repository at this point in the history
  9. 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.
    kevluu-aws committed May 13, 2024
    Configuration menu
    Copy the full SHA
    a5cdd4d View commit details
    Browse the repository at this point in the history
  10. 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.
    hayemaxi committed May 13, 2024
    Configuration menu
    Copy the full SHA
    4806eb4 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. 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]>
    nkomonen-amazon committed May 14, 2024
    Configuration menu
    Copy the full SHA
    c1c0c25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf41cfa View commit details
    Browse the repository at this point in the history
  3. 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
    ctlai95 committed May 14, 2024
    Configuration menu
    Copy the full SHA
    98e39bb View commit details
    Browse the repository at this point in the history
  4. 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
    laileni-aws committed May 14, 2024
    Configuration menu
    Copy the full SHA
    501b3da View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. 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.
    hayemaxi committed May 15, 2024
    Configuration menu
    Copy the full SHA
    0537ebc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    974b188 View commit details
    Browse the repository at this point in the history
  3. 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]>
    nkomonen-amazon committed May 15, 2024
    Configuration menu
    Copy the full SHA
    a32daaf View commit details
    Browse the repository at this point in the history
  4. 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]>
    nkomonen-amazon committed May 15, 2024
    Configuration menu
    Copy the full SHA
    1652085 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e05737f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    292fa96 View commit details
    Browse the repository at this point in the history
  7. fix(amazonq): move view details and explain to quickfix (#5001)

    * fix(amazonq): move view details and explain to quickfix
    
    * add changelog
    ctlai95 committed May 15, 2024
    Configuration menu
    Copy the full SHA
    04460ef View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a7e15e1 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. 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]>
    nkomonen-amazon committed May 16, 2024
    Configuration menu
    Copy the full SHA
    b7bcf11 View commit details
    Browse the repository at this point in the history
  2. Improve UploadZip logging

    tincheng committed May 16, 2024
    Configuration menu
    Copy the full SHA
    22b2515 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b24e963 View commit details
    Browse the repository at this point in the history
  4. 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
    damntrecky committed May 16, 2024
    Configuration menu
    Copy the full SHA
    99a92e4 View commit details
    Browse the repository at this point in the history
  5. 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]>
    nkomonen-amazon committed May 16, 2024
    Configuration menu
    Copy the full SHA
    4512e20 View commit details
    Browse the repository at this point in the history
  6. refactor log

    tincheng committed May 16, 2024
    Configuration menu
    Copy the full SHA
    a07ab30 View commit details
    Browse the repository at this point in the history
  7. fix(amazonq): avoid apply fix if already applied (#5013)

    * fix(amazonq): avoid apply fix if already applied
    
    * fix tests
    ctlai95 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    af4f464 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #5009 from tincheng/log

    Amazon Q Code Transform: Improve UploadZip logging
    tincheng committed May 16, 2024
    Configuration menu
    Copy the full SHA
    68d2e3b View commit details
    Browse the repository at this point in the history
  9. feat: add modifySourceFolder telemetry event when customer modifies d…

    …eafult source folderwhile using /dev (#4986)
    sannicm committed May 16, 2024
    Configuration menu
    Copy the full SHA
    143b29e View commit details
    Browse the repository at this point in the history
  10. chore: updated q feature dev name strings (#5004)

    * Updated Q feature dev name
    
    * added changelog
    
    * Revert "added changelog"
    
    This reverts commit 9439145.
    kumsmrit committed May 16, 2024
    Configuration menu
    Copy the full SHA
    d5211b7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    df73086 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. 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
    hayemaxi committed May 17, 2024
    Configuration menu
    Copy the full SHA
    d233b70 View commit details
    Browse the repository at this point in the history
  2. 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.
    hayemaxi committed May 17, 2024
    Configuration menu
    Copy the full SHA
    0f9782a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6583a32 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fe0f686 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f05076e View commit details
    Browse the repository at this point in the history
  6. Release 3.4.0

    aws-toolkit-automation committed May 17, 2024
    Configuration menu
    Copy the full SHA
    098bd24 View commit details
    Browse the repository at this point in the history
  7. Update version to snapshot version: 3.5.0-SNAPSHOT

    aws-toolkit-automation committed May 17, 2024
    Configuration menu
    Copy the full SHA
    0653bc1 View commit details
    Browse the repository at this point in the history
  8. Release 1.5.0

    aws-toolkit-automation committed May 17, 2024
    Configuration menu
    Copy the full SHA
    a6cf669 View commit details
    Browse the repository at this point in the history
  9. Update version to snapshot version: 1.6.0-SNAPSHOT

    aws-toolkit-automation committed May 17, 2024
    Configuration menu
    Copy the full SHA
    c322591 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Revert "fix(codecatalyst): don't display onboard node when using exis…

    …ting connection (#4988)" (#5022)
    
    This reverts commit 974b188.
    hayemaxi committed May 18, 2024
    Configuration menu
    Copy the full SHA
    01fbfb5 View commit details
    Browse the repository at this point in the history
  2. Release 3.5.0

    aws-toolkit-automation committed May 18, 2024
    Configuration menu
    Copy the full SHA
    622c993 View commit details
    Browse the repository at this point in the history
  3. Update version to snapshot version: 3.6.0-SNAPSHOT

    aws-toolkit-automation committed May 18, 2024
    Configuration menu
    Copy the full SHA
    b09c72b View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Configuration menu
    Copy the full SHA
    a24f201 View commit details
    Browse the repository at this point in the history
  2. 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
    kevluu-aws committed May 20, 2024
    Configuration menu
    Copy the full SHA
    b68e98f View commit details
    Browse the repository at this point in the history
  3. 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]>
    dogusata and hayemaxi committed May 20, 2024
    Configuration menu
    Copy the full SHA
    61b31d7 View commit details
    Browse the repository at this point in the history
  4. fix(amazonq): duplicate findings for multi-folder workspaces (#5020)

    * fix(amazonq): duplicate findings for multi-folder workspaces
    
    * fix tests
    
    * add comment
    ctlai95 committed May 20, 2024
    Configuration menu
    Copy the full SHA
    0e1fe06 View commit details
    Browse the repository at this point in the history
  5. 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]>
    nkomonen-amazon and hayemaxi committed May 20, 2024
    Configuration menu
    Copy the full SHA
    ebd440e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6eff21 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    2ec8620 View commit details
    Browse the repository at this point in the history
  2. 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.
    hayemaxi committed May 21, 2024
    Configuration menu
    Copy the full SHA
    bb01971 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5029 from hayemaxi/reauthMissingScopes

    Amazon Q 3 scopes to 5 scopes migration
    hayemaxi committed May 21, 2024
    Configuration menu
    Copy the full SHA
    9525cdf View commit details
    Browse the repository at this point in the history
  4. Release 1.6.0

    aws-toolkit-automation committed May 21, 2024
    Configuration menu
    Copy the full SHA
    282a9d9 View commit details
    Browse the repository at this point in the history
  5. Update version to snapshot version: 1.7.0-SNAPSHOT

    aws-toolkit-automation committed May 21, 2024
    Configuration menu
    Copy the full SHA
    f9c0197 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. 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.
    hayemaxi committed May 22, 2024
    Configuration menu
    Copy the full SHA
    b69e7c7 View commit details
    Browse the repository at this point in the history
  2. 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]>
    damntrecky and Nick Ardecky committed May 22, 2024
    Configuration menu
    Copy the full SHA
    6b9602a View commit details
    Browse the repository at this point in the history
  3. 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
    kevluu-aws committed May 22, 2024
    Configuration menu
    Copy the full SHA
    211f527 View commit details
    Browse the repository at this point in the history
  4. fix(transform): verify project on use instead of ext activation (#5038)

    Co-authored-by: Leonardo Araneda Freccero <[email protected]>
    arangatang and Leonardo Araneda Freccero committed May 22, 2024
    Configuration menu
    Copy the full SHA
    b243f9f View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. ci: publish to OpenVSX #5039

    justinmk3 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    a4e188c View commit details
    Browse the repository at this point in the history
  2. changelog

    justinmk3 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    42783c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fd3e2d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    320763e View commit details
    Browse the repository at this point in the history
  5. Release 3.6.0

    aws-toolkit-automation committed May 23, 2024
    Configuration menu
    Copy the full SHA
    5c24600 View commit details
    Browse the repository at this point in the history
  6. Update version to snapshot version: 3.7.0-SNAPSHOT

    aws-toolkit-automation committed May 23, 2024
    Configuration menu
    Copy the full SHA
    daa756d View commit details
    Browse the repository at this point in the history
  7. 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.
    justinmk3 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    ea835ed View commit details
    Browse the repository at this point in the history
  8. changelog

    justinmk3 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    f11de6e View commit details
    Browse the repository at this point in the history
  9. Release 3.7.0

    aws-toolkit-automation committed May 23, 2024
    Configuration menu
    Copy the full SHA
    ae4b0eb View commit details
    Browse the repository at this point in the history
  10. Update version to snapshot version: 3.8.0-SNAPSHOT

    aws-toolkit-automation committed May 23, 2024
    Configuration menu
    Copy the full SHA
    9d64962 View commit details
    Browse the repository at this point in the history
  11. telemetry(codewhisperer): customizationArn in clientComponentLatency,…

    … perceivedLatency #5035
    
    Telemetry Common repo PR: aws/aws-toolkit-common#738
    Will-ShaoHua committed May 23, 2024
    Configuration menu
    Copy the full SHA
    62d98ae View commit details
    Browse the repository at this point in the history
  12. 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)
    arangatang committed May 23, 2024
    Configuration menu
    Copy the full SHA
    4d22231 View commit details
    Browse the repository at this point in the history
  13. 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?
    justinmk3 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    afe1a39 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. 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
    ivikash committed May 24, 2024
    Configuration menu
    Copy the full SHA
    a5379f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0827476 View commit details
    Browse the repository at this point in the history
  3. 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.
    justinmk3 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    65156fb View commit details
    Browse the repository at this point in the history
  4. refactor(auth): delete old auth ui code (#5040)

    Anything that is still used was moved to src/login.
    hayemaxi committed May 24, 2024
    Configuration menu
    Copy the full SHA
    be72449 View commit details
    Browse the repository at this point in the history
  5. lint: fix warnings

    justinmk3 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    4cafc80 View commit details
    Browse the repository at this point in the history
  6. lint: fix warnings

    justinmk3 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    d8d908c View commit details
    Browse the repository at this point in the history
  7. lint: fix warnings

    justinmk3 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    a7c4b9d View commit details
    Browse the repository at this point in the history
  8. fix(amazonq): increase fuzz factor for diff patch (#5048)

    * fix(amazonq): increase fuzz factor for diff patch
    
    * fix tests
    ctlai95 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    04bbdd2 View commit details
    Browse the repository at this point in the history
  9. Merge #5054 lint

    justinmk3 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    020f6f7 View commit details
    Browse the repository at this point in the history
  10. 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.
    ivikash committed May 24, 2024
    Configuration menu
    Copy the full SHA
    b37e1d8 View commit details
    Browse the repository at this point in the history
  11. 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.
    ivikash committed May 24, 2024
    Configuration menu
    Copy the full SHA
    388b656 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. 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.
    hayemaxi committed May 28, 2024
    Configuration menu
    Copy the full SHA
    5bc95f6 View commit details
    Browse the repository at this point in the history
  2. docs: changelog

    justinmk3 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    474453e View commit details
    Browse the repository at this point in the history
  3. 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
    ivikash committed May 28, 2024
    Configuration menu
    Copy the full SHA
    9edc9bd View commit details
    Browse the repository at this point in the history
  4. 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.
    dianaabv16 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    03e5e29 View commit details
    Browse the repository at this point in the history
  5. 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.
    justinmk3 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    985c860 View commit details
    Browse the repository at this point in the history