Skip to content

Commit 480bc6a

Browse files
author
Xiao Chen
committed
fix(amazonq): open diff in a new tab when another modal is open
1 parent e9e2d8b commit 480bc6a

File tree

3 files changed

+1354
-2482
lines changed

3 files changed

+1354
-2482
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" : "Amazon Q /doc: fix open diff in a tab when another modal is open"
4+
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqDoc/controller/DocController.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ class DocController(
342342
}
343343

344344
override suspend fun processOpenDiff(message: IncomingDocMessage.OpenDiff) {
345+
this.toolWindow?.activate(null)
345346
val session = getSessionInfo(message.tabId)
346347

347348
val project = context.project
@@ -720,6 +721,7 @@ class DocController(
720721
}
721722

722723
if (filePaths.isNotEmpty()) {
724+
logger.error("xxxxxxxxxtesestestes")
723725
processOpenDiff(
724726
message = IncomingDocMessage.OpenDiff(tabId = tabId, filePath = filePaths[0].zipFilePath, deleted = false)
725727
)

0 commit comments

Comments
 (0)