Skip to content

Commit

Permalink
fix(amazonq): open diff in a new tab when another modal is open
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao Chen committed Jan 24, 2025
1 parent e9e2d8b commit 480bc6a
Show file tree
Hide file tree
Showing 3 changed files with 1,354 additions and 2,482 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Amazon Q /doc: fix open diff in a tab when another modal is open"
}
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ class DocController(
}

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

val project = context.project
Expand Down Expand Up @@ -720,6 +721,7 @@ class DocController(
}

if (filePaths.isNotEmpty()) {
logger.error("xxxxxxxxxtesestestes")
processOpenDiff(
message = IncomingDocMessage.OpenDiff(tabId = tabId, filePath = filePaths[0].zipFilePath, deleted = false)
)
Expand Down
Loading

0 comments on commit 480bc6a

Please sign in to comment.