Skip to content

Commit c1b9d17

Browse files
committed
Merge remote-tracking branch 'origin/main' into rli/remote-chat-wip
Conflicts: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/CodeWhispererPopupManager.kt
2 parents f9fa72e + a545699 commit c1b9d17

File tree

77 files changed

+1481
-574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1481
-574
lines changed

.changes/3.51.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"date" : "2025-01-29",
3+
"version" : "3.51",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Amazon Q: Now the Amazon Q suggestions can co-exist with Jetbrains suggestions, with tab behavior configurable in the settings."
7+
}, {
8+
"type" : "feature",
9+
"description" : "Amazon Q: Amazon Q inline now has configurable shortcuts for various actions including accept and browsing through suggestions."
10+
}, {
11+
"type" : "feature",
12+
"description" : "Add setting to allow Q /dev to run code and test commands"
13+
}, {
14+
"type" : "feature",
15+
"description" : "Amazon Q: The suggestion popup will hide by default and will be displayed when the suggestion is being hovered over."
16+
}, {
17+
"type" : "bugfix",
18+
"description" : "Amazon Q /doc: fix open diff in a tab when another modal is open"
19+
}, {
20+
"type" : "bugfix",
21+
"description" : "Amazon Q /test: Fixed an issue which incorrectly caused payload size exceeded exception when collecting project payload files"
22+
}, {
23+
"type" : "bugfix",
24+
"description" : "fix(amazonq): For security reasons, disabled auto linkify for link texts coming in markdown other than [TEXT](URL) format"
25+
}, {
26+
"type" : "bugfix",
27+
"description" : "Fix UI freeze caused by updating workspace index on non background context"
28+
} ]
29+
}

.changes/next-release/bugfix-970b5a61-5646-4f40-b9fa-65c69ceda73f.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "feature",
3+
"description" : "Adds event listener for notifying UI that AB feature configurations have been resolved"
4+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# _3.51_ (2025-01-29)
2+
- **(Feature)** Amazon Q: Now the Amazon Q suggestions can co-exist with Jetbrains suggestions, with tab behavior configurable in the settings.
3+
- **(Feature)** Amazon Q: Amazon Q inline now has configurable shortcuts for various actions including accept and browsing through suggestions.
4+
- **(Feature)** Add setting to allow Q /dev to run code and test commands
5+
- **(Feature)** Amazon Q: The suggestion popup will hide by default and will be displayed when the suggestion is being hovered over.
6+
- **(Bug Fix)** Amazon Q /doc: fix open diff in a tab when another modal is open
7+
- **(Bug Fix)** Amazon Q /test: Fixed an issue which incorrectly caused payload size exceeded exception when collecting project payload files
8+
- **(Bug Fix)** fix(amazonq): For security reasons, disabled auto linkify for link texts coming in markdown other than [TEXT](URL) format
9+
- **(Bug Fix)** Fix UI freeze caused by updating workspace index on non background context
10+
111
# _3.50_ (2025-01-23)
212
- **(Feature)** Amazon Q: Updated `/help` command to include re:invent 2024 features
313
- **(Feature)** Amazon Q: UI improvements through more accurate code syntax highlighting

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.51-SNAPSHOT
5+
toolkitVersion=3.52-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mockitoKotlin = "5.4.0"
2727
mockk = "1.13.10"
2828
nimbus-jose-jwt = "9.40"
2929
node-gradle = "7.0.2"
30-
telemetryGenerator = "1.0.293"
30+
telemetryGenerator = "1.0.295"
3131
testLogger = "4.0.0"
3232
testRetry = "1.5.10"
3333
# test-only; platform provides slf4j transitively at runtime

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/startup/AmazonQStartupActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import software.aws.toolkits.core.utils.warn
1717
import software.aws.toolkits.jetbrains.core.credentials.AwsBearerTokenConnection
1818
import software.aws.toolkits.jetbrains.core.credentials.ToolkitConnectionManager
1919
import software.aws.toolkits.jetbrains.core.credentials.pinning.QConnection
20-
import software.aws.toolkits.jetbrains.core.credentials.sono.isInternalUser
2120
import software.aws.toolkits.jetbrains.core.gettingstarted.emitUserState
21+
import software.aws.toolkits.jetbrains.services.amazonq.CodeWhispererFeatureConfigService
2222
import software.aws.toolkits.jetbrains.services.amazonq.project.ProjectContextController
2323
import software.aws.toolkits.jetbrains.services.amazonq.toolwindow.AmazonQToolWindow
2424
import software.aws.toolkits.jetbrains.services.amazonq.toolwindow.AmazonQToolWindowFactory
@@ -36,7 +36,7 @@ class AmazonQStartupActivity : ProjectActivity {
3636
if (ApplicationManager.getApplication().isUnitTestMode) return
3737

3838
ToolkitConnectionManager.getInstance(project).activeConnectionForFeature(QConnection.getInstance())?.let {
39-
if (it is AwsBearerTokenConnection && isInternalUser(it.startUrl)) {
39+
if (it is AwsBearerTokenConnection && CodeWhispererFeatureConfigService.getInstance().getChatWSContext()) {
4040
CodeWhispererSettings.getInstance().toggleProjectContextEnabled(value = true, passive = true)
4141
}
4242
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
package software.aws.toolkits.jetbrains.services.amazonqDoc.controller
55

66
import com.intellij.diff.DiffContentFactory
7-
import com.intellij.diff.DiffManager
7+
import com.intellij.diff.chains.SimpleDiffRequestChain
88
import com.intellij.diff.contents.EmptyContent
9+
import com.intellij.diff.editor.ChainDiffVirtualFile
10+
import com.intellij.diff.editor.DiffEditorTabFilesManager
911
import com.intellij.diff.requests.SimpleDiffRequest
1012
import com.intellij.diff.util.DiffUserDataKeys
1113
import com.intellij.ide.BrowserUtil
@@ -398,7 +400,8 @@ class DocController(
398400
val request = SimpleDiffRequest(message.filePath, leftDiffContent, rightDiffContent, null, null)
399401
request.putUserData(DiffUserDataKeys.FORCE_READ_ONLY, true)
400402

401-
DiffManager.getInstance().showDiff(project, request)
403+
val newDiff = ChainDiffVirtualFile(SimpleDiffRequestChain(request), message.filePath)
404+
DiffEditorTabFilesManager.getInstance(context.project).showDiffFile(newDiff, true)
402405
}
403406
}
404407

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqDoc/session/PrepareDocGenerationState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class PrepareDocGenerationState(
3939
var zipFileLength: Long? = null
4040
val nextState: SessionState
4141
try {
42-
val repoZipResult = config.repoContext.getProjectZip()
42+
val repoZipResult = config.repoContext.getProjectZip(false)
4343
val zipFileChecksum = repoZipResult.checksum
4444
zipFileLength = repoZipResult.contentLength
4545
val fileToUpload = repoZipResult.payload

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevConstants.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const val FEATURE_EVALUATION_PRODUCT_NAME = "FeatureDev"
77

88
const val FEATURE_NAME = "Amazon Q Developer Agent for software development"
99

10+
@Suppress("MaxLineLength")
11+
const val GENERATE_DEV_FILE_PROMPT = "generate a devfile in my repository. Note that you should only use devfile version 2.0.0 and the only supported commands are install, build and test (are all optional). so you may have to bundle some commands together using '&&'. also you can use \"public.ecr.aws/aws-mde/universal-image:latest\" as universal image if you aren’t sure which image to use. here is an example for a node repository (but don't assume it's always a node project. look at the existing repository structure before generating the devfile): schemaVersion: 2.0.0 components: - name: dev container: image: public.ecr.aws/aws-mde/universal-image:latest commands: - id: install exec: component: dev commandLine: \"npm install\" - id: build exec: component: dev commandLine: \"npm run build\" - id: test exec: component: dev commandLine: \"npm run test\""
12+
1013
// Max number of times a user can attempt to retry a code generation request if it fails
1114
const val CODE_GENERATION_RETRY_LIMIT = 3
1215

0 commit comments

Comments
 (0)