Skip to content

Commit 05402f4

Browse files
authored
Merge branch 'main' into main
2 parents 5016751 + 96331c8 commit 05402f4

File tree

19 files changed

+95
-74
lines changed

19 files changed

+95
-74
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" : "Fix inability to sign out in reauth view in Q chat panel"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Raise max `@workspace` indexing size to 4GB"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Automatically pause and resume `@workspace` indexing when OS CPU load is high"
4+
}

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

Lines changed: 9 additions & 6 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
@@ -177,13 +178,15 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
177178
ToolkitConnectionManager.getInstance(project)
178179
.activeConnectionForFeature(QConnection.getInstance()) as? AwsBearerTokenConnection
179180
)?.let { connection ->
180-
SsoLogoutAction(connection).actionPerformed(
181-
AnActionEvent.createFromDataContext(
182-
"qBrowser",
183-
null,
184-
DataContext.EMPTY_CONTEXT
181+
runInEdt {
182+
SsoLogoutAction(connection).actionPerformed(
183+
AnActionEvent.createFromDataContext(
184+
"qBrowser",
185+
null,
186+
DataContext.EMPTY_CONTEXT
187+
)
185188
)
186-
)
189+
}
187190
}
188191
}
189192

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/cwc/editor/context/project/manifest/ManifestManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import software.aws.toolkits.jetbrains.core.getTextFromUrl
1515

1616
class ManifestManager {
1717
private val cloudFrontUrl = "https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json"
18-
val currentVersion = "0.1.10"
18+
val currentVersion = "0.1.13"
1919
val currentOs = getOs()
2020
private val arch = CpuArch.CURRENT
2121
private val mapper = jacksonObjectMapper()

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/settings/CodeWhispererConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class CodeWhispererConfigurable(private val project: Project) :
124124

125125
row(message("aws.settings.codewhisperer.project_context_index_max_size")) {
126126
intTextField(
127-
range = IntRange(1, 250)
127+
range = IntRange(1, 4096)
128128
).bindIntText(codeWhispererSettings::getProjectContextIndexMaxSize, codeWhispererSettings::setProjectContextIndexMaxSize)
129129
.align(AlignX.FILL).apply {
130130
connect.subscribe(

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/settings/CodeWhispererSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguratio
8787

8888
fun getProjectContextIndexMaxSize(): Int = state.intValue.getOrDefault(
8989
CodeWhispererIntConfigurationType.ProjectContextIndexMaxSize,
90-
200
90+
250
9191
)
9292

9393
fun setProjectContextIndexMaxSize(value: Int) {

plugins/core/jetbrains-community/resources/telemetryOverride.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -810,50 +810,6 @@
810810
"type": "authType"
811811
}
812812
]
813-
},
814-
{
815-
"name": "auth_addConnection",
816-
"description": "Captures the result of adding a new connection in the 'Add New Connection' workflow",
817-
"metadata": [
818-
{
819-
"type": "attempts",
820-
"required": false
821-
},
822-
{
823-
"type": "credentialSourceId"
824-
},
825-
{
826-
"type": "featureId",
827-
"required": false
828-
},
829-
{
830-
"type": "invalidInputFields",
831-
"required": false
832-
},
833-
{
834-
"type": "isAggregated",
835-
"required": false
836-
},
837-
{
838-
"type": "reason",
839-
"required": false
840-
},
841-
{
842-
"type": "result"
843-
},
844-
{
845-
"type": "source",
846-
"required": false
847-
},
848-
{
849-
"type": "credentialStartUrl",
850-
"required": false
851-
},
852-
{
853-
"type": "isReAuth",
854-
"required": false
855-
}
856-
]
857813
}
858814
]
859815
}

0 commit comments

Comments
 (0)