Skip to content

Commit 681f5c0

Browse files
authored
Merge branch 'main' into feature/stop-generation
2 parents e54d1de + 80abea5 commit 681f5c0

File tree

73 files changed

+1312
-612
lines changed

Some content is hidden

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

73 files changed

+1312
-612
lines changed

.changes/3.32.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"date" : "2024-10-10",
3+
"version" : "3.32",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Loosen inline completion support limitations for YAML/JSON"
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Fix error occuring when Amazon Q attempts to show UI hints on manually triggerred inline suggestion (#4929)"
10+
}, {
11+
"type" : "bugfix",
12+
"description" : "Amazon Q (/dev): provide error messaging when no code changes are required for the prompt"
13+
}, {
14+
"type" : "bugfix",
15+
"description" : "Fix 'Slow operations are prohibited on EDT.' when Amazon Q is determining if a file supports inline suggestions (#4823)"
16+
}, {
17+
"type" : "bugfix",
18+
"description" : "Amazon Q Feature Dev: Add error messages when the upload URL expires"
19+
}, {
20+
"type" : "bugfix",
21+
"description" : "Fix toolkit connection dropdown getting hidden when panel width is small."
22+
}, {
23+
"type" : "bugfix",
24+
"description" : "Fix inability to sign out in reauth view in Q chat panel"
25+
}, {
26+
"type" : "bugfix",
27+
"description" : "Raise max `@workspace` indexing size to 4GB"
28+
}, {
29+
"type" : "bugfix",
30+
"description" : "Automatically pause and resume `@workspace` indexing when OS CPU load is high"
31+
} ]
32+
}

.changes/next-release/bugfix-c7239939-2067-469a-809e-594d2c95594b.json

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

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# _3.32_ (2024-10-10)
2+
- **(Feature)** Loosen inline completion support limitations for YAML/JSON
3+
- **(Bug Fix)** Fix error occuring when Amazon Q attempts to show UI hints on manually triggerred inline suggestion ([#4929](https://github.com/aws/aws-toolkit-jetbrains/issues/4929))
4+
- **(Bug Fix)** Amazon Q (/dev): provide error messaging when no code changes are required for the prompt
5+
- **(Bug Fix)** Fix 'Slow operations are prohibited on EDT.' when Amazon Q is determining if a file supports inline suggestions ([#4823](https://github.com/aws/aws-toolkit-jetbrains/issues/4823))
6+
- **(Bug Fix)** Amazon Q Feature Dev: Add error messages when the upload URL expires
7+
- **(Bug Fix)** Fix toolkit connection dropdown getting hidden when panel width is small.
8+
- **(Bug Fix)** Fix inability to sign out in reauth view in Q chat panel
9+
- **(Bug Fix)** Raise max `@workspace` indexing size to 4GB
10+
- **(Bug Fix)** Automatically pause and resume `@workspace` indexing when OS CPU load is high
11+
112
# _3.31_ (2024-10-03)
213
- **(Feature)** Amazon Q Developer: Updated legal disclaimer text
314
- **(Feature)** Amazon Q Code Transformation: allow users to skip tests

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/intellij/IdeVersions.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ import org.gradle.api.Project
77
import org.gradle.api.provider.Provider
88
import org.gradle.api.provider.ProviderFactory
99

10-
11-
enum class IdeFlavor { GW, IC, IU, RD }
10+
/** The subset of [org.jetbrains.intellij.platform.gradle.IntelliJPlatformType] that are relevant to us **/
11+
enum class IdeFlavor {
12+
GW,
13+
/* free */
14+
AI, IC, PC,
15+
/* paid */
16+
/* RR is 'non-commerical free' but treat as paid */
17+
DB, CL, GO, IU, PS, PY, RM, RR, WS,
18+
RD,
19+
}
1220

1321
object IdeVersions {
1422
private val commonPlugins = listOf(
@@ -21,7 +29,6 @@ object IdeVersions {
2129
Profile(
2230
name = "2023.3",
2331
community = ProductProfile(
24-
sdkFlavor = IdeFlavor.IC,
2532
sdkVersion = "2023.3",
2633
bundledPlugins = commonPlugins + listOf(
2734
"com.intellij.java",
@@ -34,7 +41,6 @@ object IdeVersions {
3441
)
3542
),
3643
ultimate = ProductProfile(
37-
sdkFlavor = IdeFlavor.IU,
3844
sdkVersion = "2023.3",
3945
bundledPlugins = commonPlugins + listOf(
4046
"JavaScript",
@@ -58,7 +64,6 @@ object IdeVersions {
5864
Profile(
5965
name = "2024.1",
6066
community = ProductProfile(
61-
sdkFlavor = IdeFlavor.IC,
6267
sdkVersion = "2024.1",
6368
bundledPlugins = commonPlugins + listOf(
6469
"com.intellij.java",
@@ -72,7 +77,6 @@ object IdeVersions {
7277
)
7378
),
7479
ultimate = ProductProfile(
75-
sdkFlavor = IdeFlavor.IU,
7680
sdkVersion = "2024.1",
7781
bundledPlugins = commonPlugins + listOf(
7882
"JavaScript",
@@ -97,12 +101,10 @@ object IdeVersions {
97101
Profile(
98102
name = "2024.2",
99103
gateway = ProductProfile(
100-
sdkFlavor = IdeFlavor.GW,
101104
sdkVersion = "242.20224-EAP-CANDIDATE-SNAPSHOT",
102105
bundledPlugins = listOf("org.jetbrains.plugins.terminal")
103106
),
104107
community = ProductProfile(
105-
sdkFlavor = IdeFlavor.IC,
106108
sdkVersion = "2024.2",
107109
bundledPlugins = commonPlugins + listOf(
108110
"com.intellij.java",
@@ -116,7 +118,6 @@ object IdeVersions {
116118
)
117119
),
118120
ultimate = ProductProfile(
119-
sdkFlavor = IdeFlavor.IU,
120121
sdkVersion = "2024.2",
121122
bundledPlugins = commonPlugins + listOf(
122123
"JavaScript",
@@ -151,7 +152,6 @@ object IdeVersions {
151152
}
152153

153154
open class ProductProfile(
154-
val sdkFlavor: IdeFlavor,
155155
val sdkVersion: String,
156156
val bundledPlugins: List<String> = emptyList(),
157157
val marketplacePlugins: List<String> = emptyList()
@@ -164,7 +164,7 @@ class RiderProfile(
164164
val nugetVersion: String, // https://www.nuget.org/packages/JetBrains.Rider.SDK/
165165
bundledPlugins: List<String> = emptyList(),
166166
marketplacePlugins: List<String> = emptyList(),
167-
) : ProductProfile(IdeFlavor.RD, sdkVersion, bundledPlugins, marketplacePlugins)
167+
) : ProductProfile(sdkVersion, bundledPlugins, marketplacePlugins)
168168

169169
class Profile(
170170
val name: String,

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/intellij/ToolkitIntelliJExtension.kt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,22 @@ abstract class ToolkitIntelliJExtension(private val providers: ProviderFactory)
2020

2121
fun productProfile(): Provider<out ProductProfile> = ideFlavor.flatMap { flavor ->
2222
when (flavor) {
23-
IdeFlavor.IC -> ideProfile().map { it.community }
24-
IdeFlavor.IU -> ideProfile().map { it.ultimate }
23+
IdeFlavor.AI,
24+
IdeFlavor.IC,
25+
IdeFlavor.PC,
26+
-> ideProfile().map { it.community }
27+
28+
IdeFlavor.DB,
29+
IdeFlavor.CL,
30+
IdeFlavor.GO,
31+
IdeFlavor.IU,
32+
IdeFlavor.PS,
33+
IdeFlavor.PY,
34+
IdeFlavor.RM,
35+
IdeFlavor.RR,
36+
IdeFlavor.WS,
37+
-> ideProfile().map { it.ultimate }
38+
2539
IdeFlavor.RD -> ideProfile().map { it.rider }
2640
IdeFlavor.GW -> ideProfile().map { it.gateway!! }
2741
}

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.32-SNAPSHOT
5+
toolkitVersion=3.33-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package software.aws.toolkits.jetbrains.services.amazonq
66
import com.intellij.openapi.Disposable
77
import com.intellij.openapi.actionSystem.AnActionEvent
88
import com.intellij.openapi.actionSystem.DataContext
9+
import com.intellij.openapi.application.runInEdt
910
import com.intellij.openapi.components.Service
1011
import com.intellij.openapi.components.service
1112
import com.intellij.openapi.project.Project
@@ -19,6 +20,7 @@ import com.intellij.ui.jcef.JBCefJSQuery
1920
import org.cef.CefApp
2021
import software.aws.toolkits.core.utils.error
2122
import software.aws.toolkits.core.utils.getLogger
23+
import software.aws.toolkits.core.utils.warn
2224
import software.aws.toolkits.jetbrains.core.credentials.AwsBearerTokenConnection
2325
import software.aws.toolkits.jetbrains.core.credentials.ToolkitAuthManager
2426
import software.aws.toolkits.jetbrains.core.credentials.ToolkitConnectionManager
@@ -177,13 +179,15 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
177179
ToolkitConnectionManager.getInstance(project)
178180
.activeConnectionForFeature(QConnection.getInstance()) as? AwsBearerTokenConnection
179181
)?.let { connection ->
180-
SsoLogoutAction(connection).actionPerformed(
181-
AnActionEvent.createFromDataContext(
182-
"qBrowser",
183-
null,
184-
DataContext.EMPTY_CONTEXT
182+
runInEdt {
183+
SsoLogoutAction(connection).actionPerformed(
184+
AnActionEvent.createFromDataContext(
185+
"qBrowser",
186+
null,
187+
DataContext.EMPTY_CONTEXT
188+
)
185189
)
186-
)
190+
}
187191
}
188192
}
189193

@@ -198,7 +202,7 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
198202
is BrowserMessage.SendUiClickTelemetry -> {
199203
val signInOption = message.signInOptionClicked
200204
if (signInOption.isNullOrEmpty()) {
201-
LOG.warn("Unknown sign in option")
205+
LOG.warn { "Unknown sign in option" }
202206
} else {
203207
UiTelemetry.click(project, signInOption)
204208
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/auth/AuthController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class AuthController {
8888
AuthFollowUpType.FullAuth,
8989
-> runInEdt {
9090
UiTelemetry.click(project, "amazonq_chatAuthenticate")
91-
requestCredentialsForQ(project, connectionInitiatedFromQChatPanel = true)
91+
requestCredentialsForQ(project, connectionInitiatedFromQChatPanel = true, isReauth = false)
9292
}
9393

9494
AuthFollowUpType.ReAuth,

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/explorerActions/SignInToQAction.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SignInToQAction : SignInToQActionBase(message("q.sign.in")) {
2424
UiTelemetry.click(project, "auth_start_Q")
2525

2626
if (!isQWebviewsAvailable()) {
27-
requestCredentialsForQ(project)
27+
requestCredentialsForQ(project, isReauth = false)
2828
} else {
2929
ToolWindowManager.getInstance(project).getToolWindow(AmazonQToolWindowFactory.WINDOW_ID)?.show()
3030
}
@@ -42,7 +42,7 @@ abstract class SignInToQActionBase(actionName: String) : DumbAwareAction(actionN
4242
reauthConnectionIfNeeded(project, it, isReAuth = true)
4343
} ?: run {
4444
runInEdt {
45-
if (requestCredentialsForQ(project)) {
45+
if (requestCredentialsForQ(project, isReauth = false)) {
4646
if (!openMeetQPage(project)) {
4747
return@runInEdt
4848
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,16 @@ enum class ModifySourceFolderErrorReason(
2525

2626
override fun toString(): String = reasonText
2727
}
28+
29+
enum class FeatureDevOperation(private val operationName: String) {
30+
StartTaskAssistCodeGeneration("StartTaskAssistCodeGenerator"),
31+
CreateConversation("CreateConversation"),
32+
CreateUploadUrl("CreateUploadUrl"),
33+
GenerateCode("GenerateCode"),
34+
GetTaskAssistCodeGeneration("GetTaskAssistCodeGenerator"),
35+
ExportTaskAssistArchiveResult("ExportTaskAssistArchiveResult"),
36+
UploadToS3("UploadToS3"),
37+
;
38+
39+
override fun toString(): String = operationName
40+
}

0 commit comments

Comments
 (0)