Skip to content

Commit 80a1c2e

Browse files
authored
Merge branch 'main' into bugfix/amazon-q-doc-cancel-or-wrong-folder-sel
2 parents aab3cd0 + e9e2d8b commit 80a1c2e

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Improve text description of workspace index settings"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q Doc README diff will re-open when the README file is clicked after it has been closed"
4+
}s

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeModernizerSession.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@ class CodeModernizerSession(
533533
}
534534
}
535535

536-
result.succeeded -> CodeModernizerJobCompletedResult.JobCompletedSuccessfully(jobId)
536+
result.state == TransformationStatus.COMPLETED -> {
537+
CodeModernizerJobCompletedResult.JobCompletedSuccessfully(jobId)
538+
}
537539

538540
// Should not happen
539541
else -> CodeModernizerJobCompletedResult.JobFailed(jobId, result.jobDetails?.reason().orEmpty())

plugins/amazonq/codetransform/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codemodernizer/panels/CodeModernizerJobHistoryPanelTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import org.mockito.kotlin.spy
99
import org.mockito.kotlin.times
1010
import org.mockito.kotlin.verify
1111
import software.aws.toolkits.jetbrains.services.codemodernizer.model.JobHistoryItem
12+
import software.aws.toolkits.resources.message
1213
import java.time.Duration
1314
import java.time.Instant
1415

@@ -23,7 +24,7 @@ class CodeModernizerJobHistoryPanelTest {
2324
tablePanelMock.updateTableData(testData)
2425
verify(tablePanelMock, times(1)).setDefaultUI()
2526
verify(tablePanelMock, times(1)).updateTableData(testData)
26-
assertThat(tablePanelMock.headerLabel.text).isEqualTo("Job status")
27+
assertThat(tablePanelMock.headerLabel.text).isEqualTo(message("codemodernizer.toolwindow.job_status.header"))
2728
assertThat(tablePanelMock.jbTable.columnCount).isEqualTo(5)
2829
assertThat(tablePanelMock.jbTable.isEmpty).isFalse()
2930
assertThat(tablePanelMock.tableData).isEqualTo(testData)

plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ export class Connector {
519519
case 'codetest':
520520
this.codeTestChatConnector.onFormButtonClick(tabID, messageId ?? '', {id: "utg_view_diff"})
521521
break
522+
case 'doc':
523+
this.docChatConnector.onOpenDiff(tabID, filePath, deleted)
524+
break
522525
}
523526
}
524527

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ aws.settings.codewhisperer.group.q_chat=Chat
276276
aws.settings.codewhisperer.include_code_with_reference=Include suggestions with code references
277277
aws.settings.codewhisperer.include_code_with_reference.tooltip=When checked, Amazon Q will include suggestions with code references. If you authenticate through IAM Identity Center, this setting is controlled by your Amazon Q Developer Pro administrator. <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-reference.html">Learn more<a/>
278278
aws.settings.codewhisperer.project_context=Workspace index
279-
aws.settings.codewhisperer.project_context.tooltip=When you add @workspace to your questions in Amazon Q chat, Amazon Q will index your open workspace files locally to use as context for its response. Extra CPU usage is expected while indexing a workspace. This will not impact Amazon Q features or your IDE, but you may manage CPU usage by setting the number of local threads below.
279+
aws.settings.codewhisperer.project_context.tooltip=When you add @workspace to your questions in Amazon Q chat, Amazon Q will index your workspace files locally to use as context for its response. Extra CPU usage is expected while indexing a workspace. This will not impact Amazon Q features or your IDE, but you may manage CPU usage by setting the number of local threads below.
280280
aws.settings.codewhisperer.project_context_gpu=Workspace index uses GPU
281281
aws.settings.codewhisperer.project_context_gpu.tooltip=Enable GPU to help index your local workspace files. This setting only applies to Linux and Windows.
282282
aws.settings.codewhisperer.project_context_index_max_size=Workspace index max size
@@ -805,7 +805,7 @@ codemodernizer.toolwindow.banner.job_starting=Job is starting.
805805
codemodernizer.toolwindow.banner.no_ongoing_job=No job ongoing.
806806
codemodernizer.toolwindow.banner.run_scan_complete=All steps of transformation successful
807807
codemodernizer.toolwindow.banner.run_scan_info=Select 'Transform' in toolbar to upgrade this package.
808-
codemodernizer.toolwindow.job_status.header=Job status
808+
codemodernizer.toolwindow.job_status.header=Transformation status
809809
codemodernizer.toolwindow.label=Transformation Hub - {0}
810810
codemodernizer.toolwindow.label_no_job=Transformation Hub
811811
codemodernizer.toolwindow.problems_mvn_window_not_found=Unable to display Code Transform results as the Maven window cannot be fetched.

0 commit comments

Comments
 (0)