Skip to content

Conversation

@grant0417
Copy link
Contributor

Problem

Adds inline chat to Amazon Q

Solution

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@grant0417 grant0417 changed the title Add inline chat feat(amazonq): Add inline chat Oct 25, 2024
@github-actions
Copy link

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

import * as vscode from 'vscode'
import { InlineTask, TextDiff } from '../controller/inlineTask'

export function computeDiff(response: string, inlineTask: InlineTask, isPartialDiff: boolean): TextDiff[] | undefined {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivikash is there diff-related code on master or some other branch that might overlap with this module?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing implementation generates a diff by

  • Creating a temporary clone of the file in tempDir
  • Overwriting the selected Range with the new code.

Trying to reuse the same logic, here will make it more complicated instead.

@grant0417 grant0417 marked this pull request as ready for review October 27, 2024 01:06
@grant0417 grant0417 requested review from a team as code owners October 27, 2024 01:06
@grant0417
Copy link
Contributor Author

@justinmk3 what are next steps to merge this?

@hayemaxi
Copy link
Contributor

This needs a changelog item. npm run newChange

@hayemaxi hayemaxi merged commit 67225e2 into aws:master Oct 28, 2024
20 of 25 checks passed
hayemaxi added a commit that referenced this pull request Oct 29, 2024
Re-syncs icons after discrepancy in
#5835


---

<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->

License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants