Skip to content

Commit 36a8249

Browse files
authored
Merge branch 'main' into rli/local-context-executor
2 parents 606bd38 + 8de1315 commit 36a8249

File tree

10 files changed

+35
-20
lines changed

10 files changed

+35
-20
lines changed

.changes/3.56.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-02-20",
3+
"version" : "3.56",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Amazon Q /doc: support making changes to architecture diagrams"
7+
} ]
8+
}
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: update workspace too large error message"
4+
}

.changes/next-release/feature-bfb6687a-a302-4968-8e7e-8fa0d4ef6c53.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# _3.56_ (2025-02-20)
2+
- **(Feature)** Amazon Q /doc: support making changes to architecture diagrams
3+
14
# _3.55_ (2025-02-13)
25
- **(Feature)** /transform: support transformations to Java 21
36
- **(Bug Fix)** Enable syntax highlighting when viewing diff for /test

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.56-SNAPSHOT
5+
toolkitVersion=3.57-SNAPSHOT
66

77
# Publish Settings
88
publishToken=
99
publishChannel=
1010

11-
ideProfileName=2024.2
11+
ideProfileName=2024.3
1212

1313
remoteRobotPort=8080
1414

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/ChatController.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ import kotlinx.coroutines.job
3232
import kotlinx.coroutines.withContext
3333
import migration.software.aws.toolkits.jetbrains.services.codewhisperer.customization.CodeWhispererModelConfigurator
3434
import software.amazon.awssdk.services.codewhispererstreaming.model.UserIntent
35-
import software.aws.toolkits.core.utils.debug
3635
import software.aws.toolkits.core.utils.getLogger
3736
import software.aws.toolkits.core.utils.info
3837
import software.aws.toolkits.core.utils.warn
3938
import software.aws.toolkits.jetbrains.core.coroutines.EDT
40-
import software.aws.toolkits.jetbrains.services.amazonq.CHAT_IMPLICIT_PROJECT_CONTEXT_TIMEOUT
4139
import software.aws.toolkits.jetbrains.services.amazonq.apps.AmazonQAppInitContext
4240
import software.aws.toolkits.jetbrains.services.amazonq.auth.AuthController
4341
import software.aws.toolkits.jetbrains.services.amazonq.auth.AuthNeededState
@@ -140,7 +138,6 @@ class ChatController private constructor(
140138
val triggerId = UUID.randomUUID().toString()
141139
var shouldAddIndexInProgressMessage: Boolean = false
142140
var shouldUseWorkspaceContext: Boolean = false
143-
val startUrl = getStartUrl(context.project)
144141

145142
if (prompt.contains("@workspace")) {
146143
if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
@@ -153,13 +150,6 @@ class ChatController private constructor(
153150
} else {
154151
sendOpenSettingsMessage(message.tabId)
155152
}
156-
} else if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
157-
if (ProjectContextController.getInstance(context.project).getProjectContextIndexComplete()) {
158-
val projectContextController = ProjectContextController.getInstance(context.project)
159-
queryResult = projectContextController.queryChat(prompt, timeout = CHAT_IMPLICIT_PROJECT_CONTEXT_TIMEOUT)
160-
} else {
161-
logger.debug { "skipping implicit workspace context as index is not ready" }
162-
}
163153
}
164154

165155
handleChat(

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,15 @@ class CodeModernizerPlanEditor(val project: Project, private val virtualFile: Vi
395395

396396
val table = tableMapping[step.id()]
397397

398-
val parsedTable = table?.let {
398+
var parsedTable = table?.let {
399399
MAPPER.readValue<PlanTable>(it)
400400
}
401401

402+
if (parsedTable?.rows?.isEmpty() == true) {
403+
descriptionText.text += "\n\nThere are no ${parsedTable.name.lowercase()} to display."
404+
parsedTable = null
405+
}
406+
402407
val renderedStepTable = parsedTable?.let {
403408
createTable(it)
404409
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ amazonqDoc.edit.message=Okay, let's work on your README. Describe the changes yo
4545
amazonqDoc.edit.placeholder=Describe documentation changes
4646
amazonqDoc.error.generating=Unable to generate changes.
4747
amazonqDoc.error_text=I'm sorry, I ran into an issue while trying to generate your documentation. Please try again.
48-
amazonqDoc.exception.content_length_error=Your workspace is too large for me to review. Your workspace must be within the quota, even if you choose a smaller folder. For more information on quotas, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/doc-generation.html#quotas" target="_blank">Amazon Q Developer documentation.</a>
48+
amazonqDoc.exception.content_length_error=The folder you selected is in a project or workspace that is too large for me to use as context. To create or update a README for your code, choose a folder in a smaller project or workspace. For information on quotas, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/doc-generation.html#quotas" target="_blank">Amazon Q Developer documentation.</a>
4949
amazonqDoc.exception.no_change_required=I couldn't find any code changes to update in the README. Try another documentation task.
5050
amazonqDoc.exception.prompt_too_vague=I need more information to make changes to your README. Try providing some of the following details:\n- Which sections you want to modify\n- The content you want to add or remove\n- Specific issues that need correcting\n\nFor more information on prompt best practices, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/doc-generation.html" target="_blank">Amazon Q Developer documentation.</a>
5151
amazonqDoc.exception.prompt_unrelated=These changes don't seem related to documentation. Try describing your changes again, using the following best practices:\n- Changes should relate to how project functionality is reflected in the README\n- Content you refer to should be available in your codebase\n\nFor more information on prompt best practices, see the <a href="https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/doc-generation.html" target="_blank">Amazon Q Developer documentation.</a>

ui-tests-starter/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ tasks.test {
5858
useJUnitPlatform()
5959

6060
systemProperty("ui.test.plugins", testPlugins.get().asPath)
61+
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
6162
}
6263

6364
// hack to disable ui tests in ./gradlew check
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
package software.aws.toolkits.jetbrains.uitests
44

55
import com.intellij.driver.sdk.openFile
66
import com.intellij.driver.sdk.ui.ui
77
import com.intellij.driver.sdk.waitForProjectOpen
88
import com.intellij.ide.starter.ci.CIServer
9+
import com.intellij.ide.starter.config.ConfigurationStorage
910
import com.intellij.ide.starter.di.di
1011
import com.intellij.ide.starter.driver.engine.runIdeWithDriver
1112
import com.intellij.ide.starter.ide.IdeProductProvider
@@ -28,6 +29,13 @@ class OfflineAmazonQInlineCompletionTest {
2829
di = DI {
2930
extend(di)
3031
bindSingleton<CIServer>(overrides = true) { TestCIServer }
32+
val defaults = ConfigurationStorage.instance().defaults.toMutableMap().apply {
33+
put("LOG_ENVIRONMENT_VARIABLES", (!System.getenv("CI").toBoolean()).toString())
34+
}
35+
36+
bindSingleton<ConfigurationStorage>(overrides = true) {
37+
ConfigurationStorage(this, defaults)
38+
}
3139
}
3240
}
3341

@@ -38,7 +46,7 @@ class OfflineAmazonQInlineCompletionTest {
3846
LocalProjectInfo(
3947
Paths.get("tstData", "Hello")
4048
)
41-
).useRelease("2024.2")
49+
).useRelease(System.getProperty("org.gradle.project.ideProfileName"))
4250
Paths.get(System.getProperty("user.home"), ".aws", "sso", "cache", "ee1d2538cb8d358377d7661466c866af747a8a3f.json")
4351
.createParentDirectories()
4452
.writeText(

0 commit comments

Comments
 (0)