Skip to content

Commit e8e3dc3

Browse files
authored
Merge branch 'main' into fix/empty-patch
2 parents 0f4a464 + 96331c8 commit e8e3dc3

File tree

16 files changed

+80
-68
lines changed

16 files changed

+80
-68
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" : "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/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
}

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/gettingstarted/GettingStartedAuthUtils.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fun requestCredentialsForCodeWhisperer(
3636
),
3737
isFirstInstance: Boolean = false,
3838
connectionInitiatedFromExplorer: Boolean = false,
39+
isReauth: Boolean = false,
3940
): Boolean {
4041
val authenticationDialog = SetupAuthenticationDialog(
4142
project,
@@ -87,7 +88,8 @@ fun requestCredentialsForCodeWhisperer(
8788
credentialSourceId = authenticationDialog.authType,
8889
isAggregated = true,
8990
attempts = authenticationDialog.attempts + 1,
90-
result = Result.Succeeded
91+
result = Result.Succeeded,
92+
isReAuth = isReauth
9193
)
9294
AuthTelemetry.addedConnections(
9395
project,
@@ -108,6 +110,7 @@ fun requestCredentialsForCodeWhisperer(
108110
isAggregated = false,
109111
attempts = authenticationDialog.attempts + 1,
110112
result = Result.Cancelled,
113+
isReAuth = isReauth
111114
)
112115
}
113116
return isAuthenticationSuccessful
@@ -123,6 +126,7 @@ fun requestCredentialsForQ(
123126
isFirstInstance: Boolean = false,
124127
connectionInitiatedFromExplorer: Boolean = false,
125128
connectionInitiatedFromQChatPanel: Boolean = false,
129+
isReauth: Boolean,
126130
): Boolean {
127131
// try to scope upgrade if we have a codewhisperer connection
128132
val codeWhispererConnection = ToolkitConnectionManager.getInstance(project).activeConnectionForFeature(CodeWhispererConnection.getInstance())
@@ -194,7 +198,8 @@ fun requestCredentialsForQ(
194198
credentialSourceId = authenticationDialog.authType,
195199
isAggregated = true,
196200
attempts = authenticationDialog.attempts + 1,
197-
result = Result.Succeeded
201+
result = Result.Succeeded,
202+
isReAuth = isReauth
198203
)
199204
AuthTelemetry.addedConnections(
200205
project,
@@ -215,6 +220,7 @@ fun requestCredentialsForQ(
215220
isAggregated = false,
216221
attempts = authenticationDialog.attempts + 1,
217222
result = Result.Cancelled,
223+
isReAuth = isReauth
218224
)
219225
}
220226
return isAuthenticationSuccessful

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/gettingstarted/SetupAuthenticationDialog.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ class SetupAuthenticationDialog(
287287
isAggregated = false,
288288
attempts = ++attempts,
289289
result = Result.Failed,
290-
reason = "ConnectionUnsuccessful"
290+
reason = "ConnectionUnsuccessful",
291+
isReAuth = false
291292
)
292293
} ?: return
293294

@@ -339,7 +340,8 @@ class SetupAuthenticationDialog(
339340
isAggregated = false,
340341
attempts = ++attempts,
341342
result = Result.Failed,
342-
reason = "DuplicateProfileName"
343+
reason = "DuplicateProfileName",
344+
isReAuth = false
343345
)
344346
return
345347
}
@@ -365,7 +367,8 @@ class SetupAuthenticationDialog(
365367
isAggregated = false,
366368
attempts = ++attempts,
367369
result = Result.Failed,
368-
reason = "InvalidCredentials"
370+
reason = "InvalidCredentials",
371+
isReAuth = false
369372
)
370373
return
371374
}
@@ -438,7 +441,8 @@ class SetupAuthenticationDialog(
438441
isAggregated = false,
439442
attempts = ++attempts,
440443
result = Result.Failed,
441-
reason = errorType
444+
reason = errorType,
445+
isReAuth = false
442446
)
443447

444448
LOG.error(e) { errorMessage }

0 commit comments

Comments
 (0)